From eecdd16a48e7b0dcc8fd89612e3413ae68909019 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 29 Oct 2003 11:15:24 +0000 Subject: [PATCH] * elf.c (_bfd_elfcore_make_pseudosection): Allow multiple sections with the same name. (elfcore_grok_lwpstatus): Likewise. (elfcore_grok_win32pstatus): Likewise. (elfcore_grok_note): Likewise. (elfcore_grok_nto_status): Likewise. (elfcore_grok_nto_gregs): Likewise. --- bfd/ChangeLog | 24 +++++++++++++++++------- bfd/elf.c | 16 ++++++++-------- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 83b30468f..bd4b4f234 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +2003-10-29 Alan Modra + + * elf.c (_bfd_elfcore_make_pseudosection): Allow multiple + sections with the same name. + (elfcore_grok_lwpstatus): Likewise. + (elfcore_grok_win32pstatus): Likewise. + (elfcore_grok_note): Likewise. + (elfcore_grok_nto_status): Likewise. + (elfcore_grok_nto_gregs): Likewise. + 2003-10-27 Daniel Jacobowitz * elf32-arm.h (elf32_arm_merge_private_bfd_data): Never skip dynamic @@ -66,7 +76,7 @@ * ieee.c (ieee_write_processor): Likewise. 2003-10-21 Peter Barada - Bernardo Innocenti + Bernardo Innocenti * archures.c: Add MCF528x (MCFv4) support. * bfd/cpu-m68k.c (arch_info_struct): Likewise. @@ -80,7 +90,7 @@ * elf.c, coffgen.c, bfd.c, bfd-in.h, aoutf1.h: Ditto. * aout-tic30.c, aout-target.h: * bfd-in2.h, libcoff.h, libbfd.h: Regenerate. - + 2003-10-18 Hans-Peter Nilsson Support linker relaxation of new R_MMIX_PUSHJ_STUBBABLE relocs. @@ -118,7 +128,7 @@ output section has been discarded. 2003-10-17 Shrinivas Atre - + * coff-h8300.c (funcvec_hash_newfunc): Handle normal mode. (h8300_reloc16_extra_cases): Likewise. (h8300_bfd_link_add_symbols): Likewise. @@ -228,8 +238,8 @@ elf_backend_merge_symbol_attribute. * elflink.h (elf_link_add_object_symbols): Adjust call to elf_backend_merge_symbol_attribute if the backend defined it. - * elfxx-target.h (elf_backend_merge_symbol_attribute): New macro. - (elfNN_bed): Add that to the initializer. + * elfxx-target.h (elf_backend_merge_symbol_attribute): New macro. + (elfNN_bed): Add that to the initializer. 2003-10-14 Bob Wilson @@ -417,12 +427,12 @@ * elf32-xtensa.c (elf_xtensa_relocate_section): Fix typo that clobbered dynamic relocation offsets. -2003-09-23 Alan Modra +2003-09-23 Alan Modra * simple.c (bfd_simple_get_relocated_section_contents): Free the hash table using _bfd_generic_link_hash_table_free. -2003-09-23 Alan Modra +2003-09-23 Alan Modra * elf-bfd.h (struct bfd_elf_special_section): Remove "suffix". Change type of prefix_length and suffix_length to int. Rename "attributes" diff --git a/bfd/elf.c b/bfd/elf.c index c95fcd08c..77fdfa1b0 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -6315,7 +6315,7 @@ _bfd_elfcore_make_pseudosection (bfd *abfd, return FALSE; memcpy (threaded_name, buf, len); - sect = bfd_make_section (abfd, threaded_name); + sect = bfd_make_section_anyway (abfd, threaded_name); if (sect == NULL) return FALSE; sect->_raw_size = size; @@ -6599,7 +6599,7 @@ elfcore_grok_lwpstatus (bfd *abfd, Elf_Internal_Note *note) return FALSE; memcpy (name, buf, len); - sect = bfd_make_section (abfd, name); + sect = bfd_make_section_anyway (abfd, name); if (sect == NULL) return FALSE; @@ -6629,7 +6629,7 @@ elfcore_grok_lwpstatus (bfd *abfd, Elf_Internal_Note *note) return FALSE; memcpy (name, buf, len); - sect = bfd_make_section (abfd, name); + sect = bfd_make_section_anyway (abfd, name); if (sect == NULL) return FALSE; @@ -6685,7 +6685,7 @@ elfcore_grok_win32pstatus (bfd *abfd, Elf_Internal_Note *note) memcpy (name, buf, len); - sect = bfd_make_section (abfd, name); + sect = bfd_make_section_anyway (abfd, name); if (sect == NULL) return FALSE; @@ -6712,7 +6712,7 @@ elfcore_grok_win32pstatus (bfd *abfd, Elf_Internal_Note *note) memcpy (name, buf, len); - sect = bfd_make_section (abfd, name); + sect = bfd_make_section_anyway (abfd, name); if (sect == NULL) return FALSE; @@ -6789,7 +6789,7 @@ elfcore_grok_note (bfd *abfd, Elf_Internal_Note *note) case NT_AUXV: { - asection *sect = bfd_make_section (abfd, ".auxv"); + asection *sect = bfd_make_section_anyway (abfd, ".auxv"); if (sect == NULL) return FALSE; @@ -6941,7 +6941,7 @@ elfcore_grok_nto_status (bfd *abfd, Elf_Internal_Note *note, pid_t *tid) return FALSE; strcpy (name, buf); - sect = bfd_make_section (abfd, name); + sect = bfd_make_section_anyway (abfd, name); if (sect == NULL) return FALSE; @@ -6968,7 +6968,7 @@ elfcore_grok_nto_gregs (bfd *abfd, Elf_Internal_Note *note, pid_t tid) return FALSE; strcpy (name, buf); - sect = bfd_make_section (abfd, name); + sect = bfd_make_section_anyway (abfd, name); if (sect == NULL) return FALSE; -- 2.11.4.GIT