diff options
author | Nick Clifton <nickc@redhat.com> | 2000-09-02 20:33:48 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-09-02 20:33:48 +0000 |
commit | 7a6cc5fb0c6a410afb1a424ed5c647380bcf68d3 (patch) | |
tree | a682f13a2110eb4fa1db0b89adb53a8d007a7a06 /bfd/elf.c | |
parent | a092b084322453a828644233b611471d04061a37 (diff) | |
download | gdb-7a6cc5fb0c6a410afb1a424ed5c647380bcf68d3.zip gdb-7a6cc5fb0c6a410afb1a424ed5c647380bcf68d3.tar.gz gdb-7a6cc5fb0c6a410afb1a424ed5c647380bcf68d3.tar.bz2 |
Add .gnu.linkobce.wi. to the list of debug section names.
Update generated files
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 21 |
1 files changed, 17 insertions, 4 deletions
@@ -383,10 +383,23 @@ _bfd_elf_make_section_from_shdr (abfd, hdr, name) /* The debugging sections appear to be recognized only by name, not any sort of flag. */ - if (strncmp (name, ".debug", sizeof ".debug" - 1) == 0 - || strncmp (name, ".line", sizeof ".line" - 1) == 0 - || strncmp (name, ".stab", sizeof ".stab" - 1) == 0) - flags |= SEC_DEBUGGING; + { + const char * debug_sec_names [] = + { + ".debug", + ".gnu.linkonce.wi.", + ".line", + ".stab" + }; + int i; + + for (i = sizeof (debug_sec_names) / sizeof (debug_sec_names[0]); i--;) + if (strncmp (name, debug_sec_names[i], strlen (debug_sec_names[i])) == 0) + break; + + if (i >= 0) + flags |= SEC_DEBUGGING; + } /* As a GNU extension, if the name begins with .gnu.linkonce, we only link a single copy of the section. This is used to support |