aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-12-18 13:25:46 +0000
committerAlan Modra <amodra@gmail.com>2012-12-18 13:25:46 +0000
commit15bc576af199430c68593286e2e58e43451b8c30 (patch)
tree1f00a4bbd44bf8e06dde83c9bf557516badd19b5
parent02d403bfbaaeec0cc9afb986900f9303bcc7e087 (diff)
downloadfsf-binutils-gdb-15bc576af199430c68593286e2e58e43451b8c30.zip
fsf-binutils-gdb-15bc576af199430c68593286e2e58e43451b8c30.tar.gz
fsf-binutils-gdb-15bc576af199430c68593286e2e58e43451b8c30.tar.bz2
* elf.c (swap_out_syms): Set shndx to SHN_ABS when not one of
the special MAP_* values.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 098001e..a256f72 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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>
diff --git a/bfd/elf.c b/bfd/elf.c
index a92dd5d..17e9ad4 100644
--- 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;
}
}