mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 17:02:22 +08:00
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.
This commit is contained in:
@ -521,6 +521,22 @@
|
||||
#define elf_backend_link_order_error_handler _bfd_default_error_handler
|
||||
#endif
|
||||
|
||||
#ifndef elf_backend_common_definition
|
||||
#define elf_backend_common_definition _bfd_elf_common_definition
|
||||
#endif
|
||||
|
||||
#ifndef elf_backend_common_section_index
|
||||
#define elf_backend_common_section_index _bfd_elf_common_section_index
|
||||
#endif
|
||||
|
||||
#ifndef elf_backend_common_section
|
||||
#define elf_backend_common_section _bfd_elf_common_section
|
||||
#endif
|
||||
|
||||
#ifndef elf_backend_merge_symbol
|
||||
#define elf_backend_merge_symbol NULL
|
||||
#endif
|
||||
|
||||
extern const struct elf_size_info _bfd_elfNN_size_info;
|
||||
|
||||
#ifndef INCLUDED_TARGET_FILE
|
||||
@ -590,6 +606,10 @@ static const struct elf_backend_data elfNN_bed =
|
||||
elf_backend_ecoff_debug_swap,
|
||||
elf_backend_bfd_from_remote_memory,
|
||||
elf_backend_plt_sym_val,
|
||||
elf_backend_common_definition,
|
||||
elf_backend_common_section_index,
|
||||
elf_backend_common_section,
|
||||
elf_backend_merge_symbol,
|
||||
elf_backend_link_order_error_handler,
|
||||
elf_backend_relplt_name,
|
||||
ELF_MACHINE_ALT1,
|
||||
|
Reference in New Issue
Block a user