aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-10-29 11:15:24 +0000
committerAlan Modra <amodra@gmail.com>2003-10-29 11:15:24 +0000
commit62f3bb11d41badd612de87166d7916729e875e04 (patch)
tree1dcd71c5fd99d954ce040c5ff6a6c8a70cd6539f /bfd/elf.c
parent4dad41b47ac59c0e75314ccedbbd5e5a5408c7c9 (diff)
downloadgdb-62f3bb11d41badd612de87166d7916729e875e04.zip
gdb-62f3bb11d41badd612de87166d7916729e875e04.tar.gz
gdb-62f3bb11d41badd612de87166d7916729e875e04.tar.bz2
* 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.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index c95fcd0..77fdfa1 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;