summaryrefslogtreecommitdiff
path: root/bfd/elf.c
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
commit546299c5903732413d5f1f600dcc72e40820fb79 (patch)
tree74acb71f75242b314d3496d137360f3cbf539b10 /bfd/elf.c
parent1ee8d7e850833012ffe9a7dd92c63c8ca3f974a0 (diff)
downloadbinutils-redhat-546299c5903732413d5f1f600dcc72e40820fb79.tar.gz
* elf.c (swap_out_syms): Set shndx to SHN_ABS when not one of
the special MAP_* values.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index a92dd5db5d..17e9ad47dd 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;
}
}