OSDN Git Service

2005-07-25 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl@lucon.org>
Mon, 25 Jul 2005 15:35:37 +0000 (15:35 +0000)
committerH.J. Lu <hjl@lucon.org>
Mon, 25 Jul 2005 15:35:37 +0000 (15:35 +0000)
commit2f772f24b7675ae7452ae17dd01f5f841d54071b
tree78f109edbed4971fb40208fd288cd9a3138dda42
parent8ed295cc6b83e1133a6a73940eca3ae218c5d5c7
2005-07-25  H.J. Lu  <hongjiu.lu@intel.com>

* elf-bfd.h (elf_backend_data): Add common_definition,
common_section_index, common_section, and merge_symbol.
(_bfd_elf_common_definition): New.
(_bfd_elf_common_section_index): New.
(_bfd_elf_common_section): New.

* elf.c (elf_fake_sections): Don't clear sh_flags.

* elflink.c (_bfd_elf_merge_symbol): Call backend merge_symbol
if it is available.
(is_global_data_symbol_definition): Call backend
common_definition instead of checking SHN_COMMON.
(elf_link_add_object_symbols): Likewise.
(elf_link_output_extsym): Call backend common_section_index
for common section index.
(_bfd_elf_common_definition): New.
(_bfd_elf_common_section_index): New.
(_bfd_elf_common_section): New.

* elfxx-target.h (elf_backend_common_definition): New.
(elf_backend_common_section_index): New.
(elf_backend_common_section): New.
(elf_backend_merge_symbol): New.
(elfNN_bed): Initialize common_definition, common_section_index,
common_section, and merge_symbol.

* section.c (BFD_FAKE_SECTION): New.
(STD_SECTION): Use it.
* bfd-in2.h: Regenerated.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/elf-bfd.h
bfd/elf.c
bfd/elflink.c
bfd/elfxx-target.h
bfd/section.c