Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/binutils/dist/bfd Apply rev 1.5 again, from Ma...
details: https://anonhg.NetBSD.org/src/rev/204ccbdf97b7
branches: trunk
changeset: 790312:204ccbdf97b7
user: martin <martin%NetBSD.org@localhost>
date: Thu Oct 03 12:06:04 2013 +0000
description:
Apply rev 1.5 again, from Matt Thomas:
Fix problem leading to triggering a BFD assert: when allocating space in the
got, do not allocate slots for symbols without default visibility.
diffstat:
external/gpl3/binutils/dist/bfd/elf32-vax.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r ba8ad5e24fe7 -r 204ccbdf97b7 external/gpl3/binutils/dist/bfd/elf32-vax.c
--- a/external/gpl3/binutils/dist/bfd/elf32-vax.c Thu Oct 03 10:45:57 2013 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf32-vax.c Thu Oct 03 12:06:04 2013 +0000
@@ -1314,6 +1314,7 @@
if (!elf_hash_table (info)->dynamic_sections_created
|| (info->shared && info->symbolic)
+ || ELF_ST_VISIBILITY (h->other) != STV_DEFAULT
|| h->forced_local)
{
h->got.refcount = 0;
@@ -1334,9 +1335,7 @@
dyn = elf_hash_table (info)->dynamic_sections_created;
/* Allocate space in the .got and .rela.got sections. */
- if (ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
- && (info->shared
- || WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn, 0, h)))
+ if (info->shared || WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn, 0, h))
{
sgot->size += 4;
srelgot->size += sizeof (Elf32_External_Rela);
Home |
Main Index |
Thread Index |
Old Index