diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2004-07-21 06:46:20 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2004-07-21 06:46:20 +0000 |
commit | 7e2294f9378d28e2645b2db1d23053755a603c5c (patch) | |
tree | 84a776f68fed867d5a032ff1637975db944264a1 /bfd/elf32-frv.c | |
parent | f6d87cd6b1b39639e32019f0ad44f26e82f46811 (diff) | |
download | gdb-7e2294f9378d28e2645b2db1d23053755a603c5c.zip gdb-7e2294f9378d28e2645b2db1d23053755a603c5c.tar.gz gdb-7e2294f9378d28e2645b2db1d23053755a603c5c.tar.bz2 |
* elf-bfd.h (ELF_COMMON_DEF_P): New.
* elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
common definitions.
* elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of
_bfd_elf_symbol_refs_local_p.
* elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common
symbols.
Diffstat (limited to 'bfd/elf32-frv.c')
-rw-r--r-- | bfd/elf32-frv.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/bfd/elf32-frv.c b/bfd/elf32-frv.c index 3b64a0e..69d20bf 100644 --- a/bfd/elf32-frv.c +++ b/bfd/elf32-frv.c @@ -661,17 +661,7 @@ frvfdpic_elf_link_hash_table_create (bfd *abfd) its function descriptor must be assigned by the dynamic linker. */ #define FRVFDPIC_SYM_LOCAL(INFO, H) \ (_bfd_elf_symbol_refs_local_p ((H), (INFO), 1) \ - || ! elf_hash_table (INFO)->dynamic_sections_created \ - || (/* The condition below is an ugly hack to get .scommon data to - be regarded as local. For some reason the - ELF_LINK_HASH_DEF_REGULAR bit is not set on such common - symbols, and the SEC_IS_COMMON bit is not set any longer - when we need to perform this test. Hopefully this - approximation is good enough. */ \ - ((H)->root.type == bfd_link_hash_defined \ - || (H)->root.type == bfd_link_hash_defweak) \ - && (H)->root.u.def.section->output_section \ - && ((H)->root.u.def.section->flags & SEC_LINKER_CREATED))) + || ! elf_hash_table (INFO)->dynamic_sections_created) #define FRVFDPIC_FUNCDESC_LOCAL(INFO, H) \ ((H)->dynindx == -1 || ! elf_hash_table (INFO)->dynamic_sections_created) |