diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-09-04 16:26:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-09-04 16:26:08 +0000 |
commit | 7843f00e2d20477ff4fe77054c7f2c5a90a20bca (patch) | |
tree | a3b1a31ff9e27a3f9e2745611d5bfd031647b44c /bfd/elf-bfd.h | |
parent | 4fe53c9827dd950f6fac045494bb4821a40b2141 (diff) | |
download | gdb-7843f00e2d20477ff4fe77054c7f2c5a90a20bca.zip gdb-7843f00e2d20477ff4fe77054c7f2c5a90a20bca.tar.gz gdb-7843f00e2d20477ff4fe77054c7f2c5a90a20bca.tar.bz2 |
* elf-bfd.h (ELF_LINK_NON_GOT_REF): Define.
* elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK
and NON_GOT_REF from weak defined symbol to real symbol.
* elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF.
(elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't
create a COPY reloc.
* elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF.
(elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set,
don't create a COPY reloc.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 3fa2513..1868cb6 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -189,6 +189,9 @@ struct elf_link_hash_entry #define ELF_LINK_FORCED_LOCAL 02000 /* Symbol was marked during garbage collection. */ #define ELF_LINK_HASH_MARK 04000 + /* Symbol is referenced by a non-GOT/non-PLT relocation. This is + not currently set by all the backends. */ +#define ELF_LINK_NON_GOT_REF 010000 }; /* Records local symbols to be emitted in the dynamic symbol table. */ |