reloc.c (7f3dea244c40159a41ab22da77a434d7c5b5e85a) reloc.c (d3980376e8c139e07958914c5184ab37463e4818)
1/*-
2 * Copyright 1996, 1997, 1998, 1999 John D. Polstra.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 34 unchanged lines hidden (view full) ---

43#include <stdlib.h>
44#include <string.h>
45#include <unistd.h>
46
47#include "debug.h"
48#include "rtld.h"
49
50/*
1/*-
2 * Copyright 1996, 1997, 1998, 1999 John D. Polstra.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 34 unchanged lines hidden (view full) ---

43#include <stdlib.h>
44#include <string.h>
45#include <unistd.h>
46
47#include "debug.h"
48#include "rtld.h"
49
50/*
51 * Debugging support.
52 */
53
54#define assert(cond) ((cond) ? (void) 0 :\
55 (msg("oops: " __XSTRING(__LINE__) "\n"), abort()))
56#define msg(s) (write(1, s, strlen(s)))
57#define trace() msg("trace: " __XSTRING(__LINE__) "\n");
58
59/*
60 * Process the special R_386_COPY relocations in the main program. These
61 * copy data from a shared object into a region in the main program's BSS
62 * segment.
63 *
64 * Returns 0 on success, -1 on failure.
65 */
66int
67do_copy_relocations(Obj_Entry *dstobj)

--- 175 unchanged lines hidden ---
51 * Process the special R_386_COPY relocations in the main program. These
52 * copy data from a shared object into a region in the main program's BSS
53 * segment.
54 *
55 * Returns 0 on success, -1 on failure.
56 */
57int
58do_copy_relocations(Obj_Entry *dstobj)

--- 175 unchanged lines hidden ---