]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elf.c (swap_out_syms): Set shndx to SHN_ABS when not one of
authorAlan Modra <amodra@gmail.com>
Tue, 18 Dec 2012 13:25:46 +0000 (13:25 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 18 Dec 2012 13:25:46 +0000 (13:25 +0000)
the special MAP_* values.

bfd/ChangeLog
bfd/elf.c

index 098001e1a8050f860749558123833128606ba439..a256f725dc01f4f7578249b6d13134bbf7551a87 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-18  Alan Modra  <amodra@gmail.com>
+
+       * elf.c (swap_out_syms): Set shndx to SHN_ABS when not one of
+       the special MAP_* values.
+
 2012-12-17  Roland McGrath  <mcgrathr@google.com>
            Alan Modra  <amodra@gmail.com>
 
index a92dd5db5deeb72dbc73d847c667e5ed52e32cbd..17e9ad47dd06b94cc7050c7aee1c06baa62891b3 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6791,6 +6791,7 @@ swap_out_syms (bfd *abfd,
                  shndx = elf_tdata (abfd)->symtab_shndx_section;
                  break;
                default:
+                 shndx = SHN_ABS;
                  break;
                }
            }