summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-12-18 13:25:44 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-12-18 13:25:44 +0000
commitcb549bd2308af461f08260e8bf44da35d08642d5 (patch)
tree92366b299dab945c5bab8a4c340065336474de1e
parentc71292f370aecc971ed936b5dfaf417bae1baf1c (diff)
downloadgdb-cb549bd2308af461f08260e8bf44da35d08642d5.tar.gz
* 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 098001e1a80..a256f725dc0 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 a92dd5db5de..17e9ad47dd0 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;
}
}