diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-04-20 09:55:34 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-04-20 09:55:47 -0700 |
commit | be59ad3d96fa78d97193698eb7c6309489493712 (patch) | |
tree | eeaf1fa706feab24c179b2eae313cf57f182d86e /ld/testsuite/ld-mmix | |
parent | e06efbf1c8198e25ef36a9787862f9720a94ba7b (diff) | |
download | gdb-be59ad3d96fa78d97193698eb7c6309489493712.zip gdb-be59ad3d96fa78d97193698eb7c6309489493712.tar.gz gdb-be59ad3d96fa78d97193698eb7c6309489493712.tar.bz2 |
Don't hardcode offset of .shstrtab section
There is no requirement on placement of section name section, .shstrtab.
This patch removes hardcoded offsets of .shstrtab sections.
binutils/testsuite/
* binutils-all/i386/compressed-1b.d: Don't hardcode offset of
.shstrtab section.
* binutils-all/i386/compressed-1c.d: Likewise.
* binutils-all/readelf.s-64: Likewise.
* binutils-all/x86-64/compressed-1b.d: Likewise.
* binutils-all/x86-64/compressed-1c.d: Likewise.
gas/testsuite/
* gas/i386/ilp32/x86-64-unwind.d: Don't hardcode offset of
.shstrtab section.
* gas/i386/x86-64-unwind.d: Likewise.
* gas/ia64/alias-ilp32.d: Likewise.
* gas/ia64/alias.d: Likewise.
* gas/ia64/group-1.d: Likewise.
* gas/ia64/group-2.d: Likewise.
* gas/ia64/secname-ilp32.d: Likewise.
* gas/ia64/secname.d: Likewise.
* gas/ia64/unwind-ilp32.d: Likewise.
* gas/ia64/unwind.d: Likewise.
* gas/mmix/bspec-1.d: Likewise.
* gas/mmix/byte-1.d: Likewise.
* gas/mmix/loc-1.d: Likewise.
* gas/mmix/loc-2.d: Likewise.
* gas/mmix/loc-3.d: Likewise.
* gas/mmix/loc-4.d: Likewise.
* gas/mmix/loc-5.d: Likewise.
* gas/tic6x/scomm-directive-4.d: Likewise.
ld/testsuite/
* ld-mmix/bspec1.d: Don't hardcode offset of .shstrtab section.
* ld-mmix/bspec2.d: Likewise.
* ld-mmix/local1.d: Likewise.
* ld-mmix/local3.d: Likewise.
* ld-mmix/local5.d: Likewise.
* ld-mmix/local7.d: Likewise.
* ld-mmix/undef-3.d: Likewise.
* ld-sh/sh64/crangerel1.rd: Likewise.
* ld-sh/sh64/crangerel2.rd: Likewise.
* ld-tic6x/common.d: Likewise.
* ld-tic6x/shlib-1.rd: Likewise.
* ld-tic6x/shlib-1b.rd: Likewise.
* ld-tic6x/shlib-1r.rd: Likewise.
* ld-tic6x/shlib-1rb.rd: Likewise.
* ld-tic6x/shlib-app-1.rd: Likewise.
* ld-tic6x/shlib-app-1b.rd: Likewise.
* ld-tic6x/shlib-app-1r.rd: Likewise.
* ld-tic6x/shlib-app-1rb.rd: Likewise.
* ld-tic6x/shlib-noindex.rd: Likewise.
* ld-tic6x/static-app-1.rd: Likewise.
* ld-tic6x/static-app-1b.rd: Likewise.
* ld-tic6x/static-app-1r.rd: Likewise.
* ld-tic6x/static-app-1rb.rd: Likewise.
* ld-x86-64/ilp32-4.d: Likewise.
* ld-x86-64/split-by-file-nacl.rd: Likewise.
* ld-x86-64/split-by-file.rd: Likewise.
Diffstat (limited to 'ld/testsuite/ld-mmix')
-rw-r--r-- | ld/testsuite/ld-mmix/bspec1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/bspec2.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/local1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/local3.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/local5.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/local7.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-mmix/undef-3.d | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/ld/testsuite/ld-mmix/bspec1.d b/ld/testsuite/ld-mmix/bspec1.d index cc5b7fd..784ed55 100644 --- a/ld/testsuite/ld-mmix/bspec1.d +++ b/ld/testsuite/ld-mmix/bspec1.d @@ -14,7 +14,7 @@ Section Headers: +0+4 +0+ +AX +0 +0 +4 +\[ 2\] \.MMIX\.spec_data\.2 PROGBITS +0+ +0+7c +0+4 +0+ +0 +0 +4 - +\[ 3\] \.shstrtab +STRTAB +0+ +0+80 + +\[ 3\] \.shstrtab +STRTAB +0+ +[0-9a-f]+ +0+33 +0+ +0 +0 +1 +\[ 4\] \.symtab +SYMTAB +0+ .* +0+d8 +0+18 +5 +3 +8 diff --git a/ld/testsuite/ld-mmix/bspec2.d b/ld/testsuite/ld-mmix/bspec2.d index 2f61c08..85d847d 100644 --- a/ld/testsuite/ld-mmix/bspec2.d +++ b/ld/testsuite/ld-mmix/bspec2.d @@ -19,7 +19,7 @@ Section Headers: +0+8 +0+ +0 +0 +4 +\[ 3\] \.MMIX\.spec_data\.3 PROGBITS +0+ +0+84 +0+4 +0+ +0 +0 +4 - +\[ 4\] \.shstrtab +STRTAB +0+ +0+88 + +\[ 4\] \.shstrtab +STRTAB +0+ +[0-9a-f]+ +0+45 +0+ +0 +0 +1 +\[ 5\] \.symtab +SYMTAB +0+ .* +0+108 +0+18 +6 +4 +8 diff --git a/ld/testsuite/ld-mmix/local1.d b/ld/testsuite/ld-mmix/local1.d index ab91710..478d17b 100644 --- a/ld/testsuite/ld-mmix/local1.d +++ b/ld/testsuite/ld-mmix/local1.d @@ -21,7 +21,7 @@ Section Headers: +0+8 +0+ +AX +0 +0 +4 +\[ 2\] \.MMIX\.reg_content PROGBITS +0+7e8 +0+80 +0+10 +0+ +W +0 +0 +1 - +\[ 3\] \.shstrtab +STRTAB +0+ +0+90 + +\[ 3\] \.shstrtab +STRTAB +0+ +[0-9a-f]+ +0+34 +0+ +0 +0 +1 +\[ 4\] \.symtab +SYMTAB +0+ +[0-9a-f]+ +[0-9a-f]+ +0+18 +5 +[0-9] +8 diff --git a/ld/testsuite/ld-mmix/local3.d b/ld/testsuite/ld-mmix/local3.d index efcef6d..9b9001a 100644 --- a/ld/testsuite/ld-mmix/local3.d +++ b/ld/testsuite/ld-mmix/local3.d @@ -19,7 +19,7 @@ Section Headers: +0+8 +0+ +AX +0 +0 +4 +\[ 2\] \.MMIX\.reg_content PROGBITS +0+7e8 +0+80 +0+10 +0+ +W +0 +0 +1 - +\[ 3\] \.shstrtab +STRTAB +0+ +0+90 + +\[ 3\] \.shstrtab +STRTAB +0+ +[0-9a-f]+ +0+34 +0+ +0 +0 +1 +\[ 4\] \.symtab +SYMTAB +0+ +[0-9a-f]+ +[0-9a-f]+ +0+18 +5 +[0-9] +8 diff --git a/ld/testsuite/ld-mmix/local5.d b/ld/testsuite/ld-mmix/local5.d index a89b9af..93bacd3 100644 --- a/ld/testsuite/ld-mmix/local5.d +++ b/ld/testsuite/ld-mmix/local5.d @@ -20,7 +20,7 @@ Section Headers: +0+c +0+ +AX +0 +0 +4 +\[ 2\] \.MMIX\.reg_content PROGBITS +0+7e8 +0+84 +0+10 +0+ +W +0 +0 +1 - +\[ 3\] \.shstrtab +STRTAB +0+ +0+94 + +\[ 3\] \.shstrtab +STRTAB +0+ +[0-9a-f]+ +0+34 +0+ +0 +0 +1 +\[ 4\] \.symtab +SYMTAB +0+ +[0-9a-f]+ +[0-9a-f]+ +0+18 +5 +[0-9] +8 diff --git a/ld/testsuite/ld-mmix/local7.d b/ld/testsuite/ld-mmix/local7.d index cd6a4a7..1495bf1 100644 --- a/ld/testsuite/ld-mmix/local7.d +++ b/ld/testsuite/ld-mmix/local7.d @@ -21,7 +21,7 @@ Section Headers: +0+c +0+ +AX +0 +0 +4 +\[ 2\] \.MMIX\.reg_content PROGBITS +0+7e8 +0+84 +0+10 +0+ +W +0 +0 +1 - +\[ 3\] \.shstrtab +STRTAB +0+ +0+94 + +\[ 3\] \.shstrtab +STRTAB +0+ +[0-9a-f]+ +0+34 +0+ +0 +0 +1 +\[ 4\] \.symtab +SYMTAB +0+ +[0-9a-f]+ +[0-9a-f]+ +0+18 +5 +[0-9] +8 diff --git a/ld/testsuite/ld-mmix/undef-3.d b/ld/testsuite/ld-mmix/undef-3.d index 8fbf304..c0352a6 100644 --- a/ld/testsuite/ld-mmix/undef-3.d +++ b/ld/testsuite/ld-mmix/undef-3.d @@ -11,7 +11,7 @@ Section Headers: +0+ +0+ +0 +0 +0 +\[ 1\] \.text +PROGBITS +0+ +0+78 +0+4 +0+ +AX +0 +0 +4 - +\[ 2\] \.shstrtab +STRTAB +0+ +0+7c + +\[ 2\] \.shstrtab +STRTAB +0+ +[0-9a-f]+ +0+21 +0+ +0 +0 +1 +\[ 3\] \.symtab +SYMTAB +0+ .* +0+a8 +0+18 +4 +2 +8 |