Deleted Added
full compact
coff-aux.c (33965) coff-aux.c (77298)
1/* BFD back-end for Apple M68K COFF A/UX 3.x files.
2 Copyright 1996, 1997 Free Software Foundation, Inc.
3 Written by Richard Henderson <rth@tamu.edu>.
4
5This file is part of BFD, the Binary File Descriptor library.
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by

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

25#define TARG_AUX
26#endif
27
28#define COFF_LONG_FILENAMES
29
30/* 4k pages */
31#define COFF_PAGE_SIZE 0x1000
32
1/* BFD back-end for Apple M68K COFF A/UX 3.x files.
2 Copyright 1996, 1997 Free Software Foundation, Inc.
3 Written by Richard Henderson <rth@tamu.edu>.
4
5This file is part of BFD, the Binary File Descriptor library.
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by

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

25#define TARG_AUX
26#endif
27
28#define COFF_LONG_FILENAMES
29
30/* 4k pages */
31#define COFF_PAGE_SIZE 0x1000
32
33/* On AUX, a STYP_NOLOAD|STYP_BSS section is part of a shared library. */
33/* On AUX, a STYP_NOLOAD|STYP_BSS section is part of a shared library. */
34#define BSS_NOLOAD_IS_SHARED_LIBRARY
35
36#define STATIC_RELOCS
37
38#define COFF_COMMON_ADDEND
39
40#include "bfd.h"
41#include "sysdep.h"
42
43static boolean coff_m68k_aux_link_add_one_symbol
34#define BSS_NOLOAD_IS_SHARED_LIBRARY
35
36#define STATIC_RELOCS
37
38#define COFF_COMMON_ADDEND
39
40#include "bfd.h"
41#include "sysdep.h"
42
43static boolean coff_m68k_aux_link_add_one_symbol
44 PARAMS ((struct bfd_link_info *, bfd *, const char *, flagword,
45 asection *, bfd_vma, const char *, boolean, boolean,
44 PARAMS ((struct bfd_link_info *, bfd *, const char *, flagword,
45 asection *, bfd_vma, const char *, boolean, boolean,
46 struct bfd_link_hash_entry **));
47
48#define coff_link_add_one_symbol coff_m68k_aux_link_add_one_symbol
49
50#include "coff/aux-coff.h" /* override coff/internal.h and coff/m68k.h */
51#include "coff-m68k.c"
52
53/* We need non-absolute symbols to override absolute symbols. This
54 mirrors Apple's "solution" to let a static library symbol override
55 a shared library symbol. On the whole not a good thing, given how
56 shared libraries work here, but can work if you are careful with
46 struct bfd_link_hash_entry **));
47
48#define coff_link_add_one_symbol coff_m68k_aux_link_add_one_symbol
49
50#include "coff/aux-coff.h" /* override coff/internal.h and coff/m68k.h */
51#include "coff-m68k.c"
52
53/* We need non-absolute symbols to override absolute symbols. This
54 mirrors Apple's "solution" to let a static library symbol override
55 a shared library symbol. On the whole not a good thing, given how
56 shared libraries work here, but can work if you are careful with
57 what you include in the shared object. */
57 what you include in the shared object. */
58
59static boolean
60coff_m68k_aux_link_add_one_symbol (info, abfd, name, flags, section, value,
61 string, copy, collect, hashp)
62 struct bfd_link_info *info;
63 bfd *abfd;
64 const char *name;
65 flagword flags;

--- 70 unchanged lines hidden ---
58
59static boolean
60coff_m68k_aux_link_add_one_symbol (info, abfd, name, flags, section, value,
61 string, copy, collect, hashp)
62 struct bfd_link_info *info;
63 bfd *abfd;
64 const char *name;
65 flagword flags;

--- 70 unchanged lines hidden ---