|
|
1a405f |
diff -rup binutils-2.27.orig/bfd/ChangeLog binutils-2.27/bfd/ChangeLog
|
|
|
1a405f |
--- binutils-2.27.orig/bfd/ChangeLog 2016-08-12 17:14:07.621773233 +0100
|
|
|
1a405f |
+++ binutils-2.27/bfd/ChangeLog 2016-08-12 17:17:32.408119156 +0100
|
|
|
1a405f |
@@ -1,3 +1,9 @@
|
|
|
1a405f |
+2016-08-12 Alan Modra <amodra@gmail.com>
|
|
|
1a405f |
+
|
|
|
1a405f |
+ * elf-bfd.h (struct elf_link_hash_table): Add local_dynsymcount.
|
|
|
1a405f |
+ * elflink.c (_bfd_elf_link_renumber_dynsyms): Set local_dynsymcount.
|
|
|
1a405f |
+ (bfd_elf_final_link): Set .dynsym sh_info from local_dynsymcount.
|
|
|
1a405f |
+
|
|
|
1a405f |
2016-08-03 Tristan Gingold <gingold@adacore.com>
|
|
|
1a405f |
|
|
|
1a405f |
* version.m4: Bump version to 2.27
|
|
|
1a405f |
Only in binutils-2.27/bfd: ChangeLog.orig
|
|
|
1a405f |
Only in binutils-2.27/bfd: ChangeLog.rej
|
|
|
1a405f |
diff -rup binutils-2.27.orig/bfd/elf-bfd.h binutils-2.27/bfd/elf-bfd.h
|
|
|
1a405f |
--- binutils-2.27.orig/bfd/elf-bfd.h 2016-08-12 17:14:07.630773290 +0100
|
|
|
1a405f |
+++ binutils-2.27/bfd/elf-bfd.h 2016-08-12 17:16:08.519549845 +0100
|
|
|
1a405f |
@@ -524,6 +524,7 @@ struct elf_link_hash_table
|
|
|
1a405f |
/* The number of symbols found in the link which is intended for the
|
|
|
1a405f |
mandatory DT_SYMTAB tag (.dynsym section) in .dynamic section. */
|
|
|
1a405f |
bfd_size_type dynsymcount;
|
|
|
1a405f |
+ bfd_size_type local_dynsymcount;
|
|
|
1a405f |
|
|
|
1a405f |
/* The string table of dynamic symbols, which becomes the .dynstr
|
|
|
1a405f |
section. */
|
|
|
1a405f |
diff -rup binutils-2.27.orig/bfd/elflink.c binutils-2.27/bfd/elflink.c
|
|
|
1a405f |
--- binutils-2.27.orig/bfd/elflink.c 2016-08-12 17:14:07.637773334 +0100
|
|
|
1a405f |
+++ binutils-2.27/bfd/elflink.c 2016-08-12 17:16:08.521549858 +0100
|
|
|
1a405f |
@@ -903,6 +903,7 @@ _bfd_elf_link_renumber_dynsyms (bfd *out
|
|
|
1a405f |
for (p = elf_hash_table (info)->dynlocal; p ; p = p->next)
|
|
|
1a405f |
p->dynindx = ++dynsymcount;
|
|
|
1a405f |
}
|
|
|
1a405f |
+ elf_hash_table (info)->local_dynsymcount = dynsymcount;
|
|
|
1a405f |
|
|
|
1a405f |
elf_link_hash_traverse (elf_hash_table (info),
|
|
|
1a405f |
elf_link_renumber_hash_table_dynsyms,
|
|
|
1a405f |
@@ -11678,7 +11679,10 @@ bfd_elf_final_link (bfd *abfd, struct bf
|
|
|
1a405f |
{
|
|
|
1a405f |
Elf_Internal_Sym sym;
|
|
|
1a405f |
bfd_byte *dynsym = elf_hash_table (info)->dynsym->contents;
|
|
|
1a405f |
- long last_local = 0;
|
|
|
1a405f |
+
|
|
|
1a405f |
+ o = elf_hash_table (info)->dynsym->output_section;
|
|
|
1a405f |
+ elf_section_data (o)->this_hdr.sh_info
|
|
|
1a405f |
+ = elf_hash_table (info)->local_dynsymcount + 1;
|
|
|
1a405f |
|
|
|
1a405f |
/* Write out the section symbols for the output sections. */
|
|
|
1a405f |
if (bfd_link_pic (info)
|
|
|
1a405f |
@@ -11708,8 +11712,6 @@ bfd_elf_final_link (bfd *abfd, struct bf
|
|
|
1a405f |
return FALSE;
|
|
|
1a405f |
sym.st_value = s->vma;
|
|
|
1a405f |
dest = dynsym + dynindx * bed->s->sizeof_sym;
|
|
|
1a405f |
- if (last_local < dynindx)
|
|
|
1a405f |
- last_local = dynindx;
|
|
|
1a405f |
bed->s->swap_symbol_out (abfd, &sym, dest, 0);
|
|
|
1a405f |
}
|
|
|
1a405f |
}
|
|
|
1a405f |
@@ -11742,16 +11744,10 @@ bfd_elf_final_link (bfd *abfd, struct bf
|
|
|
1a405f |
+ e->isym.st_value);
|
|
|
1a405f |
}
|
|
|
1a405f |
|
|
|
1a405f |
- if (last_local < e->dynindx)
|
|
|
1a405f |
- last_local = e->dynindx;
|
|
|
1a405f |
-
|
|
|
1a405f |
dest = dynsym + e->dynindx * bed->s->sizeof_sym;
|
|
|
1a405f |
bed->s->swap_symbol_out (abfd, &sym, dest, 0);
|
|
|
1a405f |
}
|
|
|
1a405f |
}
|
|
|
1a405f |
-
|
|
|
1a405f |
- elf_section_data (elf_hash_table (info)->dynsym->output_section)->this_hdr.sh_info =
|
|
|
1a405f |
- last_local + 1;
|
|
|
1a405f |
}
|
|
|
1a405f |
|
|
|
1a405f |
/* We get the global symbols from the hash table. */
|
|
|
1a405f |
Only in binutils-2.27/bfd: elflink.c.orig
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/ChangeLog binutils-2.27/ld/ChangeLog
|
|
|
1a405f |
--- binutils-2.27.orig/ld/ChangeLog 2016-08-12 17:14:08.064776041 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/ChangeLog 2016-08-12 17:17:00.166900351 +0100
|
|
|
1a405f |
@@ -1,3 +1,19 @@
|
|
|
1a405f |
+2016-08-12 Alan Modra <amodra@gmail.com>
|
|
|
1a405f |
+
|
|
|
1a405f |
+ * testsuite/ld-tic6x/shlib-1.rd: Correct expected .dynsym sh_info.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/static-app-1.rd: Likewise.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
|
|
|
1a405f |
+ * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
|
|
|
1a405f |
+
|
|
|
1a405f |
2016-08-03 Tristan Gingold <gingold@adacore.com>
|
|
|
1a405f |
|
|
|
1a405f |
* configure: Regenerate.
|
|
|
1a405f |
Only in binutils-2.27/ld: ChangeLog.orig
|
|
|
1a405f |
Only in binutils-2.27/ld: ChangeLog.rej
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-1b.rd binutils-2.27/ld/testsuite/ld-tic6x/shlib-1b.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-1b.rd 2016-08-12 17:14:08.200776903 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/shlib-1b.rd 2016-08-12 17:16:08.522549865 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 000048 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 00008048 001048 0000d0 10 A 3 6 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 00008048 001048 0000d0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 00008118 001118 000025 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 00008140 001140 000024 0c AI 2 10 4
|
|
|
1a405f |
\[ 5\] \.rela\.neardata RELA 00008164 001164 000018 0c AI 2 11 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-1rb.rd binutils-2.27/ld/testsuite/ld-tic6x/shlib-1rb.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-1rb.rd 2016-08-12 17:14:08.200776903 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/shlib-1rb.rd 2016-08-12 17:16:08.522549865 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 000048 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 00008048 001048 0000d0 10 A 3 6 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 00008048 001048 0000d0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 00008118 001118 000025 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 00008140 001140 000024 0c AI 2 10 4
|
|
|
1a405f |
\[ 5\] \.rela\.neardata RELA 00008164 001164 000018 0c AI 2 11 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-1.rd binutils-2.27/ld/testsuite/ld-tic6x/shlib-1.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-1.rd 2016-08-12 17:14:08.200776903 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/shlib-1.rd 2016-08-12 17:16:08.522549865 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 000048 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 00008048 001048 0000d0 10 A 3 6 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 00008048 001048 0000d0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 00008118 001118 000025 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 00008140 001140 000024 0c AI 2 10 4
|
|
|
1a405f |
\[ 5\] \.rela\.neardata RELA 00008164 001164 000018 0c AI 2 11 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-1r.rd binutils-2.27/ld/testsuite/ld-tic6x/shlib-1r.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-1r.rd 2016-08-12 17:14:08.200776903 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/shlib-1r.rd 2016-08-12 17:16:08.522549865 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 000048 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 00008048 001048 0000d0 10 A 3 6 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 00008048 001048 0000d0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 00008118 001118 000025 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 00008140 001140 000024 0c AI 2 10 4
|
|
|
1a405f |
\[ 5\] \.rela\.neardata RELA 00008164 001164 000018 0c AI 2 11 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-app-1b.rd binutils-2.27/ld/testsuite/ld-tic6x/shlib-app-1b.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-app-1b.rd 2016-08-12 17:14:08.200776903 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/shlib-app-1b.rd 2016-08-12 17:16:08.522549865 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 000044 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 00008044 001044 0000c0 10 A 3 6 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 00008044 001044 0000c0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 00008104 001104 000036 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 0000813c 00113c 000018 0c AI 2 11 4
|
|
|
1a405f |
\[ 5\] \.rela\.neardata RELA 00008154 001154 000018 0c AI 2 12 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-app-1rb.rd binutils-2.27/ld/testsuite/ld-tic6x/shlib-app-1rb.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-app-1rb.rd 2016-08-12 17:14:08.201776909 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/shlib-app-1rb.rd 2016-08-12 17:16:08.522549865 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 00003c 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 6 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 000080dc 0010dc 000031 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 00008110 001110 000018 0c AI 2 10 4
|
|
|
1a405f |
\[ 5\] \.rela\.bss RELA 00008128 001128 00000c 0c AI 2 12 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-app-1.rd binutils-2.27/ld/testsuite/ld-tic6x/shlib-app-1.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-app-1.rd 2016-08-12 17:14:08.200776903 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/shlib-app-1.rd 2016-08-12 17:16:08.522549865 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 000044 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 00008044 001044 0000c0 10 A 3 6 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 00008044 001044 0000c0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 00008104 001104 000035 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 0000813c 00113c 000018 0c AI 2 11 4
|
|
|
1a405f |
\[ 5\] \.rela\.neardata RELA 00008154 001154 000018 0c AI 2 12 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-app-1r.rd binutils-2.27/ld/testsuite/ld-tic6x/shlib-app-1r.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-app-1r.rd 2016-08-12 17:14:08.200776903 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/shlib-app-1r.rd 2016-08-12 17:16:08.522549865 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 00003c 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 6 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 000080dc 0010dc 000030 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 0000810c 00110c 000018 0c AI 2 10 4
|
|
|
1a405f |
\[ 5\] \.rela\.bss RELA 00008124 001124 00000c 0c AI 2 12 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-noindex.rd binutils-2.27/ld/testsuite/ld-tic6x/shlib-noindex.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/shlib-noindex.rd 2016-08-12 17:14:08.201776909 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/shlib-noindex.rd 2016-08-12 17:16:08.522549865 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 000048 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 00008048 001048 0000d0 10 A 3 6 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 00008048 001048 0000d0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 00008118 001118 000025 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.text RELA 00008140 001140 00000c 0c AI 2 10 4
|
|
|
1a405f |
\[ 5\] \.rela\.got RELA 0000814c 00114c 000024 0c AI 2 11 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/static-app-1b.rd binutils-2.27/ld/testsuite/ld-tic6x/static-app-1b.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/static-app-1b.rd 2016-08-12 17:14:08.201776909 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/static-app-1b.rd 2016-08-12 17:16:08.522549865 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 00003c 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 5 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 000080dc 0010dc 00001d 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 000080fc 0010fc 000024 0c AI 2 8 4
|
|
|
1a405f |
\[ 5\] \.rela\.neardata RELA 00008120 001120 000030 0c AI 2 9 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/static-app-1rb.rd binutils-2.27/ld/testsuite/ld-tic6x/static-app-1rb.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/static-app-1rb.rd 2016-08-12 17:14:08.201776909 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/static-app-1rb.rd 2016-08-12 17:16:08.523549872 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 00003c 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 5 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 000080dc 0010dc 00001d 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 000080fc 0010fc 000024 0c AI 2 8 4
|
|
|
1a405f |
\[ 5\] \.rela\.neardata RELA 00008120 001120 000018 0c AI 2 9 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/static-app-1.rd binutils-2.27/ld/testsuite/ld-tic6x/static-app-1.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/static-app-1.rd 2016-08-12 17:14:08.201776909 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/static-app-1.rd 2016-08-12 17:16:08.522549865 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 00003c 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 5 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 000080dc 0010dc 00001d 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 000080fc 0010fc 000024 0c AI 2 8 4
|
|
|
1a405f |
\[ 5\] \.rela\.neardata RELA 00008120 001120 000030 0c AI 2 9 4
|
|
|
1a405f |
diff -rup binutils-2.27.orig/ld/testsuite/ld-tic6x/static-app-1r.rd binutils-2.27/ld/testsuite/ld-tic6x/static-app-1r.rd
|
|
|
1a405f |
--- binutils-2.27.orig/ld/testsuite/ld-tic6x/static-app-1r.rd 2016-08-12 17:14:08.201776909 +0100
|
|
|
1a405f |
+++ binutils-2.27/ld/testsuite/ld-tic6x/static-app-1r.rd 2016-08-12 17:16:08.523549872 +0100
|
|
|
1a405f |
@@ -4,7 +4,7 @@ Section Headers:
|
|
|
1a405f |
\[Nr\] Name Type Addr Off Size ES Flg Lk Inf Al
|
|
|
1a405f |
\[ 0\] NULL 00000000 000000 000000 00 0 0 0
|
|
|
1a405f |
\[ 1\] \.hash HASH 00008000 001000 00003c 04 A 2 0 4
|
|
|
1a405f |
- \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 5 4
|
|
|
1a405f |
+ \[ 2\] \.dynsym DYNSYM 0000803c 00103c 0000a0 10 A 3 7 4
|
|
|
1a405f |
\[ 3\] \.dynstr STRTAB 000080dc 0010dc 00001d 00 A 0 0 1
|
|
|
1a405f |
\[ 4\] \.rela\.got RELA 000080fc 0010fc 000024 0c AI 2 8 4
|
|
|
1a405f |
\[ 5\] \.rela\.neardata RELA 00008120 001120 000018 0c AI 2 9 4
|
|
|
1a405f |
--- binutils-2.27.orig/binutils/readelf.c 2016-08-12 17:14:07.717773841 +0100
|
|
|
1a405f |
+++ binutils-2.27/binutils/readelf.c 2016-08-12 17:24:25.007897415 +0100
|
|
|
1a405f |
@@ -11110,6 +11110,11 @@ process_symbol_table (FILE * file)
|
|
|
1a405f |
}
|
|
|
1a405f |
|
|
|
1a405f |
putchar ('\n');
|
|
|
1a405f |
+
|
|
|
1a405f |
+ if (ELF_ST_BIND (psym->st_info) == STB_LOCAL
|
|
|
1a405f |
+ && si >= section->sh_info)
|
|
|
1a405f |
+ warn (_("local symbol %u found at index >= %s's sh_info value of %u\n"),
|
|
|
1a405f |
+ si, printable_section_name (section), section->sh_info);
|
|
|
1a405f |
}
|
|
|
1a405f |
|
|
|
1a405f |
free (symtab);
|