]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Move ELF section headers to end of object file
authorAlan Modra <amodra@gmail.com>
Wed, 10 Sep 2014 04:56:25 +0000 (14:26 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 10 Sep 2014 14:45:51 +0000 (00:15 +0930)
Currently, section ordering differs a little for non-loaded reloc
sections output by ld -emit-relocs or ld -r and that after passing
such objects through objcopy.  Not that it really matters, but it
would be better for a simple objcopy to produce an unchanged output
object file.  Also, section headers are put somewhere in the middle of
the non-loaded sections, again slightly differently for ld and
objcopy.  This patch fixes these discrepancies and puts section
headers last, which is where gold puts them, and is where
bfd_from_remote_memory wrongly assumed they will be found.

bfd/
* elf.c (assign_file_positions_except_relocs): Move section header
placement to..
(_bfd_elf_assign_file_positions_for_relocs): ..here.  Make static.
* elf-bfd.h (_bfd_elf_assign_file_positions_for_relocs): Delete.
* elflink.c (bfd_elf_final_link): Don't call above function.
gas/testsuite/
* gas/arm/got_prel.d: Adjust for changed section header placement.
* gas/i386/ilp32/x86-64-size-1.d: Likewise.
* gas/i386/ilp32/x86-64-size-3.d: Likewise.
* gas/i386/ilp32/x86-64-size-5.d: Likewise.
* gas/i386/ilp32/x86-64-unwind.d: Likewise.
* gas/i386/size-1.d: Likewise.
* gas/i386/size-3.d: Likewise.
* gas/i386/x86-64-size-1.d: Likewise.
* gas/i386/x86-64-size-3.d: Likewise.
* gas/i386/x86-64-size-5.d: Likewise.
* 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/bspec-2.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-aarch64/emit-relocs-local-addend.d: Adjust for changed
section header placement.
* ld-aarch64/local-addend-r.d: Likewise.
* ld-mmix/bspec1.d: Likewise.
* 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/crange3-cmpct.rd: Likewise.
* ld-sh/sh64/crange3-media.rd: 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.

64 files changed:
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf.c
bfd/elflink.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/got_prel.d
gas/testsuite/gas/i386/ilp32/x86-64-size-1.d
gas/testsuite/gas/i386/ilp32/x86-64-size-3.d
gas/testsuite/gas/i386/ilp32/x86-64-size-5.d
gas/testsuite/gas/i386/ilp32/x86-64-unwind.d
gas/testsuite/gas/i386/size-1.d
gas/testsuite/gas/i386/size-3.d
gas/testsuite/gas/i386/x86-64-size-1.d
gas/testsuite/gas/i386/x86-64-size-3.d
gas/testsuite/gas/i386/x86-64-size-5.d
gas/testsuite/gas/i386/x86-64-unwind.d
gas/testsuite/gas/ia64/alias-ilp32.d
gas/testsuite/gas/ia64/alias.d
gas/testsuite/gas/ia64/group-1.d
gas/testsuite/gas/ia64/group-2.d
gas/testsuite/gas/ia64/secname-ilp32.d
gas/testsuite/gas/ia64/secname.d
gas/testsuite/gas/ia64/unwind-ilp32.d
gas/testsuite/gas/ia64/unwind.d
gas/testsuite/gas/mmix/bspec-1.d
gas/testsuite/gas/mmix/bspec-2.d
gas/testsuite/gas/mmix/byte-1.d
gas/testsuite/gas/mmix/loc-1.d
gas/testsuite/gas/mmix/loc-2.d
gas/testsuite/gas/mmix/loc-3.d
gas/testsuite/gas/mmix/loc-4.d
gas/testsuite/gas/mmix/loc-5.d
gas/testsuite/gas/tic6x/scomm-directive-4.d
ld/testsuite/ChangeLog
ld/testsuite/ld-aarch64/emit-relocs-local-addend.d
ld/testsuite/ld-aarch64/local-addend-r.d
ld/testsuite/ld-mmix/bspec1.d
ld/testsuite/ld-mmix/bspec2.d
ld/testsuite/ld-mmix/local1.d
ld/testsuite/ld-mmix/local3.d
ld/testsuite/ld-mmix/local5.d
ld/testsuite/ld-mmix/local7.d
ld/testsuite/ld-mmix/undef-3.d
ld/testsuite/ld-sh/sh64/crange3-cmpct.rd
ld/testsuite/ld-sh/sh64/crange3-media.rd
ld/testsuite/ld-sh/sh64/crangerel1.rd
ld/testsuite/ld-sh/sh64/crangerel2.rd
ld/testsuite/ld-tic6x/common.d
ld/testsuite/ld-tic6x/shlib-1.rd
ld/testsuite/ld-tic6x/shlib-1b.rd
ld/testsuite/ld-tic6x/shlib-1r.rd
ld/testsuite/ld-tic6x/shlib-1rb.rd
ld/testsuite/ld-tic6x/shlib-app-1.rd
ld/testsuite/ld-tic6x/shlib-app-1b.rd
ld/testsuite/ld-tic6x/shlib-app-1r.rd
ld/testsuite/ld-tic6x/shlib-app-1rb.rd
ld/testsuite/ld-tic6x/shlib-noindex.rd
ld/testsuite/ld-tic6x/static-app-1.rd
ld/testsuite/ld-tic6x/static-app-1b.rd
ld/testsuite/ld-tic6x/static-app-1r.rd
ld/testsuite/ld-tic6x/static-app-1rb.rd
ld/testsuite/ld-x86-64/ilp32-4.d
ld/testsuite/ld-x86-64/split-by-file-nacl.rd
ld/testsuite/ld-x86-64/split-by-file.rd

index 8cbab99e3c1ca3d25cc03ce53bff87e126e230a6..882d9947d075c54e2eaf44cc0ba4816da68709c2 100644 (file)
@@ -1,3 +1,11 @@
+2014-09-10  Alan Modra  <amodra@gmail.com>
+
+       * elf.c (assign_file_positions_except_relocs): Move section header
+       placement to..
+       (_bfd_elf_assign_file_positions_for_relocs): ..here.  Make static.
+       * elf-bfd.h (_bfd_elf_assign_file_positions_for_relocs): Delete.
+       * elflink.c (bfd_elf_final_link): Don't call above function.
+
 2014-08-30  Alan Modra  <amodra@gmail.com>
 
        * elf32-ppc.c (ppc_elf_relax_section): Fix off by one error.
index 63ffa85af5026d138675ae72412119a6f9cfee03..2f24274d3f1fb64a3c753b4c1bc180381a8ee1bd 100644 (file)
@@ -1988,8 +1988,6 @@ extern long _bfd_elf_link_lookup_local_dynindx
   (struct bfd_link_info *, bfd *, long);
 extern bfd_boolean _bfd_elf_compute_section_file_positions
   (bfd *, struct bfd_link_info *);
-extern void _bfd_elf_assign_file_positions_for_relocs
-  (bfd *);
 extern file_ptr _bfd_elf_assign_file_position_for_section
   (Elf_Internal_Shdr *, file_ptr, bfd_boolean);
 
index 9dc6b6d121f2502869e0d4b5919c1518e093bd4c..a772db0e74f1a3acfd105aec8cdb20e542608529 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -5124,7 +5124,6 @@ assign_file_positions_except_relocs (bfd *abfd,
 {
   struct elf_obj_tdata *tdata = elf_tdata (abfd);
   Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd);
-  file_ptr off;
   const struct elf_backend_data *bed = get_elf_backend_data (abfd);
 
   if ((abfd->flags & (EXEC_P | DYNAMIC)) == 0
@@ -5134,6 +5133,7 @@ assign_file_positions_except_relocs (bfd *abfd,
       unsigned int num_sec = elf_numsections (abfd);
       Elf_Internal_Shdr **hdrpp;
       unsigned int i;
+      file_ptr off;
 
       /* Start after the ELF header.  */
       off = i_ehdrp->e_ehsize;
@@ -5157,6 +5157,8 @@ assign_file_positions_except_relocs (bfd *abfd,
          else
            off = _bfd_elf_assign_file_position_for_section (hdr, off, TRUE);
        }
+
+      elf_next_file_pos (abfd) = off;
     }
   else
     {
@@ -5203,17 +5205,8 @@ assign_file_positions_except_relocs (bfd *abfd,
       if (bfd_seek (abfd, (bfd_signed_vma) bed->s->sizeof_ehdr, SEEK_SET) != 0
          || bed->s->write_out_phdrs (abfd, tdata->phdr, alloc) != 0)
        return FALSE;
-
-      off = elf_next_file_pos (abfd);
     }
 
-  /* Place the section headers.  */
-  off = align_file_position (off, 1 << bed->s->log_file_align);
-  i_ehdrp->e_shoff = off;
-  off += i_ehdrp->e_shnum * i_ehdrp->e_shentsize;
-
-  elf_next_file_pos (abfd) = off;
-
   return TRUE;
 }
 
@@ -5306,14 +5299,16 @@ prep_headers (bfd *abfd)
 }
 
 /* Assign file positions for all the reloc sections which are not part
-   of the loadable file image.  */
+   of the loadable file image, and the file position of section headers.  */
 
-void
+static void
 _bfd_elf_assign_file_positions_for_relocs (bfd *abfd)
 {
   file_ptr off;
   unsigned int i, num_sec;
   Elf_Internal_Shdr **shdrpp;
+  Elf_Internal_Ehdr *i_ehdrp;
+  const struct elf_backend_data *bed;
 
   off = elf_next_file_pos (abfd);
 
@@ -5328,6 +5323,12 @@ _bfd_elf_assign_file_positions_for_relocs (bfd *abfd)
        off = _bfd_elf_assign_file_position_for_section (shdrp, off, TRUE);
     }
 
+/* Place the section headers.  */
+  i_ehdrp = elf_elfheader (abfd);
+  bed = get_elf_backend_data (abfd);
+  off = align_file_position (off, 1 << bed->s->log_file_align);
+  i_ehdrp->e_shoff = off;
+  off += i_ehdrp->e_shnum * i_ehdrp->e_shentsize;
   elf_next_file_pos (abfd) = off;
 }
 
index c1e794868c3861e755a21198473f106da0e36515..d33efe0e8733a3f081d9391e6b22f9a2d1d6e3b8 100644 (file)
@@ -10691,12 +10691,10 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
       esdo->rela.count = 0;
     }
 
-  _bfd_elf_assign_file_positions_for_relocs (abfd);
-
   /* We have now assigned file positions for all the sections except
-     .symtab and .strtab.  We start the .symtab section at the current
-     file position, and write directly to it.  We build the .strtab
-     section in memory.  */
+     .symtab, .strtab, and non-loaded reloc sections.  We start the
+     .symtab section at the current file position, and write directly
+     to it.  We build the .strtab section in memory.  */
   bfd_get_symcount (abfd) = 0;
   symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
   /* sh_name is set in prep_headers.  */
index 534b1f39ca596e9866ba54d5ef118f0d4579b5fa..d705f8a08380feba2386135e9729159203bc0326 100644 (file)
@@ -1,3 +1,34 @@
+2014-09-10  Alan Modra  <amodra@gmail.com>
+
+       * gas/arm/got_prel.d: Adjust for changed section header placement.
+       * gas/i386/ilp32/x86-64-size-1.d: Likewise.
+       * gas/i386/ilp32/x86-64-size-3.d: Likewise.
+       * gas/i386/ilp32/x86-64-size-5.d: Likewise.
+       * gas/i386/ilp32/x86-64-unwind.d: Likewise.
+       * gas/i386/size-1.d: Likewise.
+       * gas/i386/size-3.d: Likewise.
+       * gas/i386/x86-64-size-1.d: Likewise.
+       * gas/i386/x86-64-size-3.d: Likewise.
+       * gas/i386/x86-64-size-5.d: Likewise.
+       * 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/bspec-2.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.
+
 2014-09-06  Matthew Fortune  <matthew.fortune@imgtec.com>
 
        * gas/mips/attr-gnu-abi-fp-1.d: Relax expected output.
index 16ffe78e4ef16b0447fd1420ec2152d038815c4e..880a6dbacdf153705991953261f826c376947701 100644 (file)
@@ -4,11 +4,11 @@
 # readelf: -x 4 -r
 # target: *-*-*eabi* *-*-symbianelf *-*-linux-* *-*-elf *-*-nacl*
 
-Relocation section '.rel.text.foo' at offset 0x3f0 contains 1 entries:
+Relocation section '.rel.text.foo' at offset .* contains 1 entries:
  Offset     Info    Type            Sym.Value  Sym. Name
 00000010  00000c60 R_ARM_GOT_PREL    00000000   i
 
-Relocation section '.rel.ARM.exidx.text.foo' at offset 0x3f8 contains 2 entries:
+Relocation section '.rel.ARM.exidx.text.foo' at offset .* contains 2 entries:
  Offset     Info    Type            Sym.Value  Sym. Name
 00000000  0000042a R_ARM_PREL31      00000000   .text.foo
 00000000  00000d00 R_ARM_NONE        00000000   __aeabi_unwind_cpp_pr0
index d3e5a13f8767922022d8bd18133115a1467dfda5..0b956d90b6cb93c136d98e75810781f268e3b8f1 100644 (file)
@@ -3,7 +3,7 @@
 #readelf: -r
 
 
-Relocation section '.rela.text' at offset 0x2dc contains 9 entries:
+Relocation section '.rela.text' at offset .* contains 9 entries:
  Offset     Info    Type            Sym.Value  Sym. Name \+ Addend
 0+1  00000420 R_X86_64_SIZE32   00000000   xxx \+ 0
 0+6  00000420 R_X86_64_SIZE32   00000000   xxx - 8
@@ -15,7 +15,7 @@ Relocation section '.rela.text' at offset 0x2dc contains 9 entries:
 0+24  00000620 R_X86_64_SIZE32   00000020   zzz - 20
 0+29  00000620 R_X86_64_SIZE32   00000020   zzz \+ 20
 
-Relocation section '.rela.data' at offset 0x348 contains 3 entries:
+Relocation section '.rela.data' at offset .* contains 3 entries:
  Offset     Info    Type            Sym.Value  Sym. Name \+ Addend
 0+50  00000420 R_X86_64_SIZE32   00000000   xxx - 1
 0+54  00000520 R_X86_64_SIZE32   00000000   yyy \+ 2
index 044c1e2d350867ea375e3b5677cb27881b2eb277..a1169d6fe63985bfa35a5d4de018315b522bb958 100644 (file)
@@ -3,7 +3,7 @@
 #readelf: -r
 
 
-Relocation section '.rela.text' at offset 0x334 contains 6 entries:
+Relocation section '.rela.text' at offset .* contains 6 entries:
  Offset     Info    Type            Sym.Value  Sym. Name \+ Addend
 0+1  00000620 R_X86_64_SIZE32   00000000   xxx \+ 0
 0+6  00000620 R_X86_64_SIZE32   00000000   xxx - 8
@@ -12,7 +12,7 @@ Relocation section '.rela.text' at offset 0x334 contains 6 entries:
 0+15  00000720 R_X86_64_SIZE32   00000000   yyy - 10
 0+1a  00000720 R_X86_64_SIZE32   00000000   yyy \+ 10
 
-Relocation section '.rela.tdata' at offset 0x37c contains 2 entries:
+Relocation section '.rela.tdata' at offset .* contains 2 entries:
  Offset     Info    Type            Sym.Value  Sym. Name \+ Addend
 0+50  00000620 R_X86_64_SIZE32   00000000   xxx - 1
 0+54  00000720 R_X86_64_SIZE32   00000000   yyy \+ 2
index 46d38e65aabc713c8d03cb2204c9814cb1a2df85..f4eb0d6949ebffdf70176f441c154326199d5d1f 100644 (file)
@@ -3,13 +3,13 @@
 #readelf: -r
 
 
-Relocation section '.rela.text' at offset 0x2d8 contains 3 entries:
+Relocation section '.rela.text' at offset .* contains 3 entries:
  Offset     Info    Type            Sym.Value  Sym. Name \+ Addend
 0+2  00000421 R_X86_64_SIZE64   00000000   xxx \+ 0
 0+c  00000421 R_X86_64_SIZE64   00000000   xxx - 8
 0+16  00000421 R_X86_64_SIZE64   00000000   xxx \+ 8
 
-Relocation section '.rela.data' at offset 0x2fc contains 3 entries:
+Relocation section '.rela.data' at offset .* contains 3 entries:
  Offset     Info    Type            Sym.Value  Sym. Name \+ Addend
 0+50  00000421 R_X86_64_SIZE64   00000000   xxx - 1
 0+58  00000621 R_X86_64_SIZE64   00000000   yyy \+ c8
index d92f9c48756fff10b5508ffbd477f8229944209e..f2c045f6fa0fe70a4e9f0fd4edeba171835ec2de 100644 (file)
@@ -2,7 +2,7 @@
 #readelf: -S
 #name: x86-64 (ILP32) unwind
 
-There are 8 section headers, starting at offset 0x74:
+There are 8 section headers, starting at offset 0xc8:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
@@ -12,8 +12,8 @@ Section Headers:
   \[ 3\] .bss              NOBITS          00000000 000034 000000 00  WA  0   0  1
   \[ 4\] .eh_frame         X86_64_UNWIND   00000000 000034 000008 00   A  0   0  1
   \[ 5\] .shstrtab         STRTAB          00000000 00003c 000036 00      0   0  1
-  \[ 6\] .symtab           SYMTAB          00000000 0001b4 000050 10      7   5  4
-  \[ 7\] .strtab           STRTAB          00000000 000204 000001 00      0   0  1
+  \[ 6\] .symtab           SYMTAB          00000000 000074 000050 10      7   5  4
+  \[ 7\] .strtab           STRTAB          00000000 0000c4 000001 00      0   0  1
 Key to Flags:
   W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\), l \(large\)
   I \(info\), L \(link order\), G \(group\), T \(TLS\), E \(exclude\), x \(unknown\)
index ae10fdfbdb09905603ddf75f487b1f363745bbf6..ba45fa7ff364a622888501dd58d1be1a6fc18e50 100644 (file)
@@ -2,7 +2,7 @@
 #readelf: -r
 
 
-Relocation section '.rel.text' at offset 0x2dc contains 9 entries:
+Relocation section '.rel.text' at offset .* contains 9 entries:
  Offset     Info    Type            Sym.Value  Sym. Name
 0+1  00000426 R_386_SIZE32      00000000   xxx
 0+6  00000426 R_386_SIZE32      00000000   xxx
@@ -14,7 +14,7 @@ Relocation section '.rel.text' at offset 0x2dc contains 9 entries:
 0+24  00000626 R_386_SIZE32      00000020   zzz
 0+29  00000626 R_386_SIZE32      00000020   zzz
 
-Relocation section '.rel.data' at offset 0x324 contains 3 entries:
+Relocation section '.rel.data' at offset .* contains 3 entries:
  Offset     Info    Type            Sym.Value  Sym. Name
 0+50  00000426 R_386_SIZE32      00000000   xxx
 0+54  00000526 R_386_SIZE32      00000000   yyy
index 4f01766babe0bc19b46eaa57a84249c40f4345d4..042bfe7d88e7379145f09ae996bc85ad96ab18a0 100644 (file)
@@ -2,7 +2,7 @@
 #readelf: -r
 
 
-Relocation section '.rel.text' at offset 0x330 contains 6 entries:
+Relocation section '.rel.text' at offset .* contains 6 entries:
  Offset     Info    Type            Sym.Value  Sym. Name
 0+1  00000626 R_386_SIZE32      00000000   xxx
 0+6  00000626 R_386_SIZE32      00000000   xxx
@@ -11,7 +11,7 @@ Relocation section '.rel.text' at offset 0x330 contains 6 entries:
 0+15  00000726 R_386_SIZE32      00000000   yyy
 0+1a  00000726 R_386_SIZE32      00000000   yyy
 
-Relocation section '.rel.tdata' at offset 0x360 contains 2 entries:
+Relocation section '.rel.tdata' at offset .* contains 2 entries:
  Offset     Info    Type            Sym.Value  Sym. Name
 0+50  00000626 R_386_SIZE32      00000000   xxx
 0+54  00000726 R_386_SIZE32      00000000   yyy
index 798229ed43ae79c04887901dd1b88cdbd2074004..d615bd3eaaced9e6813d00f4b99d56b06f7513f5 100644 (file)
@@ -3,7 +3,7 @@
 #readelf: -r
 
 
-Relocation section '.rela.text' at offset 0x3f8 contains 9 entries:
+Relocation section '.rela.text' at offset .* contains 9 entries:
   Offset          Info           Type           Sym. Value    Sym. Name \+ Addend
 0+1  000400000020 R_X86_64_SIZE32   0000000000000000 xxx \+ 0
 0+6  000400000020 R_X86_64_SIZE32   0000000000000000 xxx - 8
@@ -15,7 +15,7 @@ Relocation section '.rela.text' at offset 0x3f8 contains 9 entries:
 0+24  000600000020 R_X86_64_SIZE32   0000000000000020 zzz - 20
 0+29  000600000020 R_X86_64_SIZE32   0000000000000020 zzz \+ 20
 
-Relocation section '.rela.data' at offset 0x4d0 contains 3 entries:
+Relocation section '.rela.data' at offset .* contains 3 entries:
   Offset          Info           Type           Sym. Value    Sym. Name \+ Addend
 0+50  000400000020 R_X86_64_SIZE32   0000000000000000 xxx - 1
 0+54  000500000020 R_X86_64_SIZE32   0000000000000000 yyy \+ 2
index 0ce908e6d10adb420e841f16297bb9e1ce52e775..c28d69523b2698609d5704a4c2238c5254627a2e 100644 (file)
@@ -3,7 +3,7 @@
 #readelf: -r
 
 
-Relocation section '.rela.text' at offset 0x490 contains 6 entries:
+Relocation section '.rela.text' at offset .* contains 6 entries:
   Offset          Info           Type           Sym. Value    Sym. Name \+ Addend
 0+1  000600000020 R_X86_64_SIZE32   0000000000000000 xxx \+ 0
 0+6  000600000020 R_X86_64_SIZE32   0000000000000000 xxx - 8
@@ -12,7 +12,7 @@ Relocation section '.rela.text' at offset 0x490 contains 6 entries:
 0+15  000700000020 R_X86_64_SIZE32   0000000000000000 yyy - 10
 0+1a  000700000020 R_X86_64_SIZE32   0000000000000000 yyy \+ 10
 
-Relocation section '.rela.tdata' at offset 0x520 contains 2 entries:
+Relocation section '.rela.tdata' at offset .* contains 2 entries:
   Offset          Info           Type           Sym. Value    Sym. Name \+ Addend
 0+50  000600000020 R_X86_64_SIZE32   0000000000000000 xxx - 1
 0+54  000700000020 R_X86_64_SIZE32   0000000000000000 yyy \+ 2
index be7e90db72c1ddc5dc9b65756ad9f0c8e7779d07..791fb5689f18d012794d34768d3bf1b07dca76aa 100644 (file)
@@ -2,13 +2,13 @@
 #readelf: -r
 
 
-Relocation section '.rela.text' at offset 0x3f8 contains 3 entries:
+Relocation section '.rela.text' at offset .* contains 3 entries:
   Offset          Info           Type           Sym. Value    Sym. Name \+ Addend
 0+2  000400000021 R_X86_64_SIZE64   0000000000000000 xxx \+ 0
 0+c  000400000021 R_X86_64_SIZE64   0000000000000000 xxx - 8
 0+16  000400000021 R_X86_64_SIZE64   0000000000000000 xxx \+ 8
 
-Relocation section '.rela.data' at offset 0x440 contains 3 entries:
+Relocation section '.rela.data' at offset .* contains 3 entries:
   Offset          Info           Type           Sym. Value    Sym. Name \+ Addend
 0+50  000400000021 R_X86_64_SIZE64   0000000000000000 xxx - 1
 0+58  000600000021 R_X86_64_SIZE64   0000000000000000 yyy \+ c8
index fbfc5808178fa1dc0d4103ecbe78d122a6e4feb7..78425979c7214e170adc14053990e70da5779404 100644 (file)
@@ -1,7 +1,7 @@
 #readelf: -S
 #name: x86-64 unwind
 
-There are 8 section headers, starting at offset 0x80:
+There are 8 section headers, starting at offset 0x100:
 
 Section Headers:
   \[Nr\] Name              Type             Address           Offset
@@ -18,9 +18,9 @@ Section Headers:
        0000000000000008  0000000000000000   A       0     0     1
   \[ 5\] \.shstrtab         STRTAB           0000000000000000  00000048
        0000000000000036  0000000000000000           0     0     1
-  \[ 6\] \.symtab           SYMTAB           0000000000000000  00000280
+  \[ 6\] \.symtab           SYMTAB           0000000000000000  00000080
        0000000000000078  0000000000000018           7     5     8
-  \[ 7\] \.strtab           STRTAB           0000000000000000  000002f8
+  \[ 7\] \.strtab           STRTAB           0000000000000000  000000f8
        0000000000000001  0000000000000000           0     0     1
 Key to Flags:
 #...
index 691bce7aa5bf7f0f745e97fd79f54be02268075c..8dbb7d83398a4e40e6ffde6de4f39cbdb8ace9b9 100644 (file)
@@ -3,7 +3,7 @@
 #as: -milp32
 #source: alias.s
 
-There are 8 section headers, starting at offset 0x78:
+There are 8 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] +Name +Type +Addr +Off +Size +ES +Flg +Lk +Inf +Al
@@ -13,8 +13,8 @@ Section Headers:
  +\[ 3\] .bss +NOBITS +00000000 000040 000000 00 +WA +0 +0 +1
  +\[ 4\] 1234 +PROGBITS +00000000 000040 000005 00 +WA +0 +0 +1
  +\[ 5\] .shstrtab +STRTAB +00000000 000045 000031 00 +0 +0 +1
- +\[ 6\] .symtab +SYMTAB +00000000 0001b8 000060 10 +7 +6 +4
- +\[ 7\] .strtab +STRTAB +00000000 000218 000006 00 +0 +0 +1
+ +\[ 6\] .symtab +SYMTAB +00000000 [0-9a-f]+ 000060 10 +7 +6 +4
+ +\[ 7\] .strtab +STRTAB +00000000 [0-9a-f]+ 000006 00 +0 +0 +1
 Key to Flags:
 #...
 
index 8566e01bdaba6e96623b7b46bd33516b81ca1f49..833e07e66c1398e09cb66654b307e5ab02429d31 100644 (file)
@@ -1,7 +1,7 @@
 #readelf: -Ss
 #name: ia64 alias and secalias
 
-There are 8 section headers, starting at offset 0x78:
+There are 8 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] +Name +Type +Address +Offset
@@ -18,9 +18,9 @@ Section Headers:
  +0000000000000005 +0000000000000000 +WA +0 +0 +1
  +\[ 5\] \.shstrtab +STRTAB +0000000000000000 +00000045
  +0000000000000031 +0000000000000000 +0 +0 +1
- +\[ 6\] \.symtab +SYMTAB +0000000000000000 +00000278
+ +\[ 6\] \.symtab +SYMTAB +0000000000000000 .*
  +0000000000000090 +0000000000000018 +7 +6 +8
- +\[ 7\] \.strtab +STRTAB +0000000000000000 +00000308
+ +\[ 7\] \.strtab +STRTAB +0000000000000000 .*
  +0000000000000006 +0000000000000000 +0 +0 +1
 Key to Flags:
 #...
index 3c824a74fff1466f7fcde4bb2fdb49a5f455c312..3a20e5a1143086c58332835a5dd480909017f86b 100644 (file)
@@ -1,7 +1,7 @@
 #readelf: -Sg
 #name: ia64 group
 
-There are 9 section headers, starting at offset 0x98:
+There are 9 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type             Address           Offset
@@ -20,9 +20,9 @@ Section Headers:
        0000000000000010  0000000000000000 AXG       0     0     16
   \[ 6\] \.shstrtab         STRTAB           0000000000000000  00000060
        0000000000000033  0000000000000000           0     0     1
-  \[ 7\] \.symtab           SYMTAB           0000000000000000  000002d8
+  \[ 7\] \.symtab           SYMTAB           0000000000000000  .*
        00000000000000c0  0000000000000018           8     8     8
-  \[ 8\] \.strtab           STRTAB           0000000000000000  00000398
+  \[ 8\] \.strtab           STRTAB           0000000000000000  .*
        000000000000000c  0000000000000000           0     0     1
 Key to Flags:
 #...
index 3b1579c9fd18b46df5fdd569cf24264fa21d99bc..205bd6b1717962b91cf54d1ff277b141ca0725f0 100644 (file)
@@ -2,7 +2,7 @@
 #as: -x
 #name: ia64 unwind group
 
-There are 12 section headers, starting at offset 0x100:
+There are 12 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type             Address           Offset
@@ -23,13 +23,13 @@ Section Headers:
        0000000000000010  0000000000000000  AG       0     0     8
   \[ 7\] \.gnu\.linkonce\.ia6 IA_64_UNWIND     0000000000000000  00000060
        0000000000000018  0000000000000000 ALG       5     5     8
-  \[ 8\] \.rela\.gnu\.linkonc RELA             0000000000000000  000004e0
+  \[ 8\] \.rela\.gnu\.linkonc RELA             0000000000000000  .*
        0000000000000048  0000000000000018   I      10     7     8
   \[ 9\] \.shstrtab         STRTAB           0000000000000000  00000078
        0000000000000081  0000000000000000           0     0     1
-  \[10\] \.symtab           SYMTAB           0000000000000000  00000400
+  \[10\] \.symtab           SYMTAB           0000000000000000  .*
        00000000000000d8  0000000000000018          11     9     8
-  \[11\] \.strtab           STRTAB           0000000000000000  000004d8
+  \[11\] \.strtab           STRTAB           0000000000000000  .*
        0000000000000005  0000000000000000           0     0     1
 Key to Flags:
 #...
index 63fc749abd824038f7eb6b08dd387219aee01644..e1cf066ad822cd0519f29a87af454f11cb77dbc0 100644 (file)
@@ -3,7 +3,7 @@
 #as: -milp32
 #source: secname.s
 
-There are 8 section headers, starting at offset 0x7c:
+There are 8 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
@@ -13,7 +13,7 @@ Section Headers:
   \[ 3\] .bss              NOBITS          00000000 000040 000000 00  WA  0   0  1
   \[ 4\] .foo              PROGBITS        00000000 000040 000008 00  WA  0   0  8
   \[ 5\] .shstrtab         STRTAB          00000000 000048 000031 00      0   0  1
-  \[ 6\] .symtab           SYMTAB          00000000 0001bc 000050 10      7   5  4
-  \[ 7\] .strtab           STRTAB          00000000 00020c 000001 00      0   0  1
+  \[ 6\] .symtab           SYMTAB          00000000 [0-9a-f]+ 000050 10      7   5  4
+  \[ 7\] .strtab           STRTAB          00000000 [0-9a-f]+ 000001 00      0   0  1
 Key to Flags:
 #...
index f198d44c7c8184be6f1253fe231d6b979254db24..d77ac52dd959458534f4de20cf008676d4394a0f 100644 (file)
@@ -1,7 +1,7 @@
 #readelf: -S
 #name: ia64 section name
 
-There are 8 section headers, starting at offset 0x80:
+There are 8 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type             Address           Offset
@@ -18,9 +18,9 @@ Section Headers:
        0000000000000008  0000000000000000  WA       0     0     8
   \[ 5\] \.shstrtab         STRTAB           0000000000000000  00000048
        0000000000000031  0000000000000000           0     0     1
-  \[ 6\] \.symtab           SYMTAB           0000000000000000  00000280
+  \[ 6\] \.symtab           SYMTAB           0000000000000000  .*
        0000000000000078  0000000000000018           7     5     8
-  \[ 7\] \.strtab           STRTAB           0000000000000000  000002f8
+  \[ 7\] \.strtab           STRTAB           0000000000000000  .*
        0000000000000001  0000000000000000           0     0     1
 Key to Flags:
 #...
index 577c505e1bc95f3cdbe9d5e17ba6656b6c4e1672..b26375618bf7d80d6660603b583390eb94165236 100644 (file)
@@ -3,7 +3,7 @@
 #as: -milp32
 #source: unwind.s
 
-There are 9 section headers, starting at offset 0xa0:
+There are 9 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
@@ -14,7 +14,7 @@ Section Headers:
   \[ 4\] .IA_64.unwind_inf PROGBITS        00000000 000040 000008 00   A  0   0  8
   \[ 5\] .IA_64.unwind     IA_64_UNWIND    00000000 000048 000008 00  AL  1   1  8
   \[ 6\] .shstrtab         STRTAB          00000000 000050 00004d 00      0   0  1
-  \[ 7\] .symtab           SYMTAB          00000000 000208 000060 10      8   6  4
-  \[ 8\] .strtab           STRTAB          00000000 000268 000001 00      0   0  1
+  \[ 7\] .symtab           SYMTAB          00000000 [0-9a-f]+ 000060 10      8   6  4
+  \[ 8\] .strtab           STRTAB          00000000 [0-9a-f]+ 000001 00      0   0  1
 Key to Flags:
 #...
index b4888e70f390bbf3a507163ad204ecc95616bb16..e2bfdae59104cfb2b3cf9103b0b0e77f061fdd5c 100644 (file)
@@ -1,7 +1,7 @@
 #readelf: -S
 #name: ia64 unwind section
 
-There are 9 section headers, starting at offset 0xa0:
+There are 9 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type             Address           Offset
@@ -20,9 +20,9 @@ Section Headers:
        0000000000000008  0000000000000000  AL       1     1     8
   \[ 6\] \.shstrtab         STRTAB           0000000000000000  00000050
        000000000000004d  0000000000000000           0     0     1
-  \[ 7\] \.symtab           SYMTAB           0000000000000000  000002e0
+  \[ 7\] \.symtab           SYMTAB           0000000000000000  .*
        0000000000000090  0000000000000018           8     6     8
-  \[ 8\] \.strtab           STRTAB           0000000000000000  00000370
+  \[ 8\] \.strtab           STRTAB           0000000000000000  .*
        0000000000000001  0000000000000000           0     0     1
 Key to Flags:
 #...
index 0030ca16c333fcbaeb1f1c6e118289ba77e24d52..63d9d62db80900a6170f09f6a166dd3ac508995a 100644 (file)
@@ -1,5 +1,5 @@
 #readelf: -Ssr -x1 -x4
-There are 9 section headers, starting at offset 0x..:
+There are 9 section headers, starting at offset .*:
 #...
  +\[ 4\] \.MMIX\.spec_data\.2 +PROGBITS +0+ +0+44
  +0+4 +0+ +0 +0 +4
index 4e549ae0db4460d5c27a504ca1fd829df64a51b4..a9ce03de891af0ec369442f954b9c049aabf163a 100644 (file)
@@ -1,21 +1,21 @@
 #readelf: -Sr -x1 -x4
-There are 11 section headers, starting at offset 0x..:
+There are 11 section headers, starting at offset .*:
 #...
   \[ 4\] \.MMIX\.spec_data\.2 PROGBITS         0+  0+48
        0+10  0+           0     0     8
-  \[ 5\] \.rela\.MMIX\.spec_d RELA             0+  0+4..
+  \[ 5\] \.rela\.MMIX\.spec_d RELA             0+  .*
  +0+30  0+18 +I +9 +4 +8
   \[ 6\] \.MMIX\.spec_data\.3 PROGBITS         0+  0+58
        0+8  0+           0     0     8
-  \[ 7\] \.rela\.MMIX\.spec_d RELA             0+  0+4..
+  \[ 7\] \.rela\.MMIX\.spec_d RELA             0+  .*
  +0+18 +0+18 +I +9 +6 +8
 #...
-Relocation section '\.rela\.MMIX\.spec_data\.2' at offset 0x4.. contains 2 entries:
+Relocation section '\.rela\.MMIX\.spec_data\.2' at offset .* contains 2 entries:
 .*
 0+  0+600000004 R_MMIX_32 +0+ +forw +\+ 0
 0+8  0+700000005 R_MMIX_64 +0+ +other +\+ 0
 
-Relocation section '\.rela\.MMIX\.spec_data\.3' at offset 0x4.. contains 1 entries:
+Relocation section '\.rela\.MMIX\.spec_data\.3' at offset .* contains 1 entries:
 .*
 0+  0+700000005 R_MMIX_64 +0+ +other +\+ 0
 
index 8b816ca7360bf7518a9021c127d30a8580237016..0882ba51a0b0193701e2e48ab3b6e9ada0543764 100644 (file)
@@ -1,5 +1,5 @@
 #readelf: -Ssrx1
-There are 7 section headers, starting at offset 0x88:
+There are 7 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] +Name +Type +Address +Offset
@@ -14,9 +14,9 @@ Section Headers:
  +0000000000000000 +0000000000000000 +WA +0 +0 +1
  +\[ 4\] \.shstrtab +STRTAB +0000000000000000 +00000056
  +000000000000002c +0000000000000000 +0 +0 +1
- +\[ 5\] \.symtab +SYMTAB +0000000000000000 +00000248
+ +\[ 5\] \.symtab +SYMTAB +0000000000000000 .*
  +00000000000000c0 +0000000000000018 +6 +7 +8
- +\[ 6\] \.strtab +STRTAB +0000000000000000 +00000308
+ +\[ 6\] \.strtab +STRTAB +0000000000000000 .*
  +0000000000000018 +0000000000000000 +0 +0 +1
 Key to Flags:
 #...
index 34b20bf384dbfa780970a14d2b8f7b54c440d0d4..31d646518c51777255e7bc2bd9c7fafabae988d3 100644 (file)
@@ -1,6 +1,6 @@
 #readelf: -Ssrx1 -x2
 
-There are 7 section headers, starting at offset 0x90:
+There are 7 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] +Name +Type +Address +Offset
@@ -15,9 +15,9 @@ Section Headers:
  +0000000000000000 +0000000000000000 +WA +0 +0 +1
  +\[ 4\] \.shstrtab +STRTAB +0000000000000000 +00000064
  +000000000000002c +0000000000000000 +0 +0 +1
- +\[ 5\] \.symtab +SYMTAB +0000000000000000 +00000250
+ +\[ 5\] \.symtab +SYMTAB +0000000000000000 .*
  +00000000000000c0 +0000000000000018 +6 +6 +8
- +\[ 6\] \.strtab +STRTAB +0000000000000000 +00000310
+ +\[ 6\] \.strtab +STRTAB +0000000000000000 .*
  +000000000000002a +0000000000000000 +0 +0 +1
 Key to Flags:
 #...
index 9c87474a7942a39c6f484291940c47c8314ed49a..de7e5c59fec571176a9391ada59c5f5dabb535a0 100644 (file)
@@ -1,6 +1,6 @@
 #readelf: -Ssrx1
 
-There are 7 section headers, starting at offset 0x78:
+There are 7 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] +Name +Type +Address +Offset
@@ -15,9 +15,9 @@ Section Headers:
  +0000000000000000 +0000000000000000 +WA +0 +0 +1
  +\[ 4\] \.shstrtab +STRTAB +0000000000000000 +00000048
  +000000000000002c +0000000000000000 +0 +0 +1
- +\[ 5\] \.symtab +SYMTAB +0000000000000000 +00000238
+ +\[ 5\] \.symtab +SYMTAB +0000000000000000 .*
  +0000000000000090 +0000000000000018 +6 +4 +8
- +\[ 6\] \.strtab +STRTAB +0000000000000000 +000002c8
+ +\[ 6\] \.strtab +STRTAB +0000000000000000 .*
  +000000000000001a +0000000000000000 +0 +0 +1
 Key to Flags:
 #...
index 702e825610f007d505db3a5a3775d3438582ea1d..a481efd83e9432d376cd0a02622044d1904f8ade 100644 (file)
@@ -1,5 +1,5 @@
 #readelf: -Ssrx1 -x2
-There are 7 section headers, starting at offset 0x80:
+There are 7 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] +Name +Type +Address +Offset
@@ -14,9 +14,9 @@ Section Headers:
  +0000000000000000 +0000000000000000 +WA +0 +0 +1
  +\[ 4\] \.shstrtab +STRTAB +0000000000000000 +00000054
  +000000000000002c +0000000000000000 +0 +0 +1
- +\[ 5\] \.symtab +SYMTAB +0000000000000000 +00000240
+ +\[ 5\] \.symtab +SYMTAB +0000000000000000 .*
  +00000000000000c0 +0000000000000018 +6 +5 +8
- +\[ 6\] \.strtab +STRTAB +0000000000000000 +00000300
+ +\[ 6\] \.strtab +STRTAB +0000000000000000 .*
  +0000000000000030 +0000000000000000 +0 +0 +1
 Key to Flags:
 #...
index baa4eb32abb9c1fb641e9b449a792673a2958ae9..2e745144c8b8e7a0ef9ec3b5cf0255d96a833b77 100644 (file)
@@ -1,5 +1,5 @@
 #readelf: -Ssrx1 -x2
-There are 7 section headers, starting at offset 0x88:
+There are 7 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] +Name +Type +Address +Offset
@@ -14,9 +14,9 @@ Section Headers:
  +0000000000000000 +0000000000000000 +WA +0 +0 +1
  +\[ 4\] \.shstrtab +STRTAB +0000000000000000 +0000005c
  +000000000000002c +0000000000000000 +0 +0 +1
- +\[ 5\] \.symtab +SYMTAB +0000000000000000 +00000248
+ +\[ 5\] \.symtab +SYMTAB +0000000000000000 .*
  +00000000000000c0 +0000000000000018 +6 +5 +8
- +\[ 6\] \.strtab +STRTAB +0000000000000000 +00000308
+ +\[ 6\] \.strtab +STRTAB +0000000000000000 .*
  +000000000000003b +0000000000000000 +0 +0 +1
 Key to Flags:
 #...
index cf66b05d8f640e8f1781791890a76d2ad6d795ca..c5abf780cf597f0ac0577e9a27a0ddc6d194fcf0 100644 (file)
@@ -1,5 +1,5 @@
 #readelf: -Ssrx1 -x2
-There are 7 section headers, starting at offset 0x98:
+There are 7 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] +Name +Type +Address +Offset
@@ -14,9 +14,9 @@ Section Headers:
  +0+ +0+ +WA +0 +0 +1
  +\[ 4\] \.shstrtab +STRTAB +0+ +0+6c
  +0+2c +0+ +0 +0 +1
- +\[ 5\] \.symtab +SYMTAB +0+ +0+258
+ +\[ 5\] \.symtab +SYMTAB +0+ .*
  +0+c0 +0+18 +6 +6 +8
- +\[ 6\] \.strtab +STRTAB +0+ +0+318
+ +\[ 6\] \.strtab +STRTAB +0+ .*
  +0+29 +0+ +0 +0 +1
 Key to Flags:
 #...
index 9eba4fdefa95493de51020aa424442002fb3644e..1be90d0de190d3bde8f0339dd32504837bc1fbaa 100644 (file)
@@ -3,7 +3,7 @@
 #source: scomm-directive-4.s
 #readelf: -Ss
 
-There are 8 section headers, starting at offset 0x88:
+There are 8 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
@@ -13,8 +13,8 @@ Section Headers:
   \[ 3\] \.bss              NOBITS          00000000 000034 000000 00  WA  0   0  1
   \[ 4\] \.c6xabi\.attribute C6000_ATTRIBUTE 00000000 000034 000013 00      0   0  1
   \[ 5\] \.shstrtab         STRTAB          00000000 000047 00003f 00      0   0  1
-  \[ 6\] \.symtab           SYMTAB          00000000 0001c8 0000d0 10      7   5  4
-  \[ 7\] \.strtab           STRTAB          00000000 000298 00001d 00      0   0  1
+  \[ 6\] \.symtab           SYMTAB          00000000 [0-9a-f]+ 0000d0 10      7   5  4
+  \[ 7\] \.strtab           STRTAB          00000000 [0-9a-f]+ 00001d 00      0   0  1
 Key to Flags:
   W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
   I \(info\), L \(link order\), G \(group\), T \(TLS\), E \(exclude\), x \(unknown\)
index 45639d3429cbb92ab845d9d62e274536b0dd4b5f..8f38ff53454421005b80d7cf794bbc50c95c827e 100644 (file)
@@ -1,3 +1,37 @@
+2014-09-10  Alan Modra  <amodra@gmail.com>
+
+       * ld-aarch64/emit-relocs-local-addend.d: Adjust for changed
+       section header placement.
+       * ld-aarch64/local-addend-r.d: Likewise.
+       * ld-mmix/bspec1.d: Likewise.
+       * 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/crange3-cmpct.rd: Likewise.
+       * ld-sh/sh64/crange3-media.rd: 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.
+
 2014-09-06  Matthew Fortune  <matthew.fortune@imgtec.com>
 
        * ld-mips-elf/abiflags-strip1-ph.d: Ignore big/little endian
index 9d652c2dccd349bbc95e41e37392c704e699b81e..a5ce63d6e0a42841a3e50597865c28e3b89bcb7b 100644 (file)
@@ -3,14 +3,14 @@
 #ld: -T relocs.ld -e0 --emit-relocs
 #readelf: -r
 
-Relocation section '\.rela\.text' at offset 0x102f8 contains 4 entries:
+Relocation section '\.rela\.text' at offset .* contains 4 entries:
   Offset          Info           Type           Sym\. Value    Sym\. Name \+ Addend
 000000010000  000200000113 R_AARCH64_ADR_PRE 0000000000010018 \.rodata \+ 0
 000000010004  000200000115 R_AARCH64_ADD_ABS 0000000000010018 \.rodata \+ 0
 00000001000c  000200000113 R_AARCH64_ADR_PRE 0000000000010018 \.rodata \+ 10
 000000010010  000200000115 R_AARCH64_ADD_ABS 0000000000010018 \.rodata \+ 10
 
-Relocation section '\.rela\.rodata' at offset 0x10358 contains 2 entries:
+Relocation section '\.rela\.rodata' at offset .* contains 2 entries:
   Offset          Info           Type           Sym\. Value    Sym. Name \+ Addend
 000000010020  000200000101 R_AARCH64_ABS64   0000000000010018 \.rodata \+ 0
 000000010030  000200000101 R_AARCH64_ABS64   0000000000010018 \.rodata \+ 10
index c8c27771715bf71eff94ace10e535a150f7b355c..eb814041e50dffeb1dfb5d75e52c60ae3eb69de4 100644 (file)
@@ -3,14 +3,14 @@
 #ld: -e0 -r
 #readelf: -r
 
-Relocation section '\.rela\.text' at offset 0x338 contains 4 entries:
+Relocation section '\.rela\.text' at offset .* contains 4 entries:
   Offset          Info           Type           Sym\. Value    Sym\. Name \+ Addend
 000000000000  000200000113 R_AARCH64_ADR_PRE 0000000000000000 \.rodata \+ 0
 000000000004  000200000115 R_AARCH64_ADD_ABS 0000000000000000 \.rodata \+ 0
 00000000000c  000200000113 R_AARCH64_ADR_PRE 0000000000000000 \.rodata \+ 10
 000000000010  000200000115 R_AARCH64_ADD_ABS 0000000000000000 \.rodata \+ 10
 
-Relocation section '\.rela\.rodata' at offset 0x398 contains 2 entries:
+Relocation section '\.rela\.rodata' at offset .* contains 2 entries:
   Offset          Info           Type           Sym\. Value    Sym. Name \+ Addend
 000000000008  000200000101 R_AARCH64_ABS64   0000000000000000 \.rodata \+ 0
 000000000018  000200000101 R_AARCH64_ABS64   0000000000000000 \.rodata \+ 10
index 16db5f417db28b015222ce1bb2e0ad8636ba47d3..cc5b7fd2ae2bfb46783d58b99f2af9b3f0a50ffe 100644 (file)
@@ -3,7 +3,7 @@
 #ld: -m elf64mmix
 #readelf: -Ssr -x1 -x2
 
-There are 6 section headers, starting at offset 0xb8:
+There are 6 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] Name +Type +Address +Offset
@@ -16,9 +16,9 @@ Section Headers:
  +0+4 +0+ +0 +0 +4
  +\[ 3\] \.shstrtab +STRTAB +0+ +0+80
  +0+33 +0+ +0 +0 +1
- +\[ 4\] \.symtab +SYMTAB +0+ +0+238
+ +\[ 4\] \.symtab +SYMTAB +0+ .*
  +0+d8 +0+18 +5 +3 +8
- +\[ 5\] \.strtab +STRTAB +0+ +0+310
+ +\[ 5\] \.strtab +STRTAB +0+ .*
  +0+2d +0+ +0 +0 +1
 Key to Flags:
 #...
index d2fd6dd78b29bd6b9aaf043faa7a6ff263ad9445..2f61c0856224eaad918ced981c1229799c69b59d 100644 (file)
@@ -6,7 +6,7 @@
 #ld: -m elf64mmix
 #readelf: -Ssr -x1 -x2 -x3
 
-There are 7 section headers, starting at offset 0xd0:
+There are 7 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] Name +Type +Address +Offset
@@ -21,9 +21,9 @@ Section Headers:
  +0+4 +0+ +0 +0 +4
  +\[ 4\] \.shstrtab +STRTAB +0+ +0+88
  +0+45 +0+ +0 +0 +1
- +\[ 5\] \.symtab +SYMTAB +0+ +0+290
+ +\[ 5\] \.symtab +SYMTAB +0+ .*
  +0+108 +0+18 +6 +4 +8
- +\[ 6\] \.strtab +STRTAB +0+ +0+398
+ +\[ 6\] \.strtab +STRTAB +0+ .*
  +0+32 +0+ +0 +0 +1
 Key to Flags:
 #...
index 31caa1c62294b6835641b25921a031e526899970..ab917109ada38049a09e01d84f56502e659b586a 100644 (file)
@@ -10,7 +10,7 @@
 # (different meaning of "local" than for symbol), which can be seen as
 # somewhat twisted.
 
-There are 6 section headers, starting at offset 0xc8:
+There are 6 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] Name +Type +Address +Offset
index 837633c8fcd85462b81a2285423d93bd31de5999..efcef6d39cec9ff40be4f5aa0cdf3529e253c3b0 100644 (file)
@@ -8,7 +8,7 @@
 
 # Like local1, but ext1 is here a constant, not a global register.
 
-There are 6 section headers, starting at offset 0xc8:
+There are 6 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] Name +Type +Address +Offset
index 3beba4e2b39fdaf009b59a6a0c19a8331286ceba..a89b9af28d90c7ac224e4def30b754b21d7ee3f7 100644 (file)
@@ -9,7 +9,7 @@
 
 # Like local1, but with two checks for a local register.
 
-There are 6 section headers, starting at offset 0xc8:
+There are 6 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] Name +Type +Address +Offset
index b4653fd103e110a11f7fc7da02574c08a71691ae..cd6a4a7d521bb0d7285d7e4ba78ac59da6ffef4d 100644 (file)
@@ -10,7 +10,7 @@
 # Like local1, but ext1 is here a constant, not a global register and two
 # local-register checks.
 
-There are 6 section headers, starting at offset 0xc8:
+There are 6 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] Name +Type +Address +Offset
index 93d7a9995da89ff98dcfd934f3b365498c3f6f9d..2f551b9f71f1e771d9410545a301f13144ae13e4 100644 (file)
@@ -2,7 +2,7 @@
 #ld: -u undefd -m elf64mmix
 #readelf: -S -s
 
-There are 5 section headers, starting at offset 0xa0:
+There are 5 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] Name +Type +Address +Offset
@@ -13,9 +13,9 @@ Section Headers:
  +0+4 +0+ +AX +0 +0 +4
  +\[ 2\] \.shstrtab +STRTAB +0+ +0+7c
  +0+21 +0+ +0 +0 +1
- +\[ 3\] \.symtab +SYMTAB +0+ +0+1e0
+ +\[ 3\] \.symtab +SYMTAB +0+ .*
  +0+c0 +0+18 +4 +2 +8
- +\[ 4\] \.strtab +STRTAB +0+ +0+2a0
+ +\[ 4\] \.strtab +STRTAB +0+ .*
  +0+2f +0+ +0 +0 +1
 Key to Flags:
 #...
index cfd0b5a9c0d893992247582840bfede24e2da3d9..d4f090e1512f27360c86f3361ea1f3969b9a7960 100644 (file)
@@ -10,7 +10,7 @@ ELF Header:
  +Version: +0x1
  +Entry point address: +0x10c4
  +Start of program headers: +52 \(bytes into file\)
- +Start of section headers: +504 \(bytes into file\)
+ +Start of section headers: .*
  +Flags: +0xa, sh5
  +Size of this header: +52 \(bytes\)
  +Size of program headers: +32 \(bytes\)
index 84902191cab643a8d1b9f6293e5a8c3daaa197b6..5a856d4ec30f2f7a94831d02bf6335371a64408a 100644 (file)
@@ -10,7 +10,7 @@ ELF Header:
  +Version: +0x1
  +Entry point address: +0x10a5
  +Start of program headers: +52 \(bytes into file\)
- +Start of section headers: +504 \(bytes into file\)
+ +Start of section headers: .*
  +Flags: +0xa, sh5
  +Size of this header: +52 \(bytes\)
  +Size of program headers: +32 \(bytes\)
index 1a9ce2f4a19345cfebf321fb056e4e6c49eb8408..6f3b84bffd50bc0d0bf189700a62d3d882ec26b6 100644 (file)
@@ -1,4 +1,4 @@
-There are 11 section headers, starting at offset 0xbc:
+There are 11 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] Name +Type +Addr +Off +Size +ES Flg Lk Inf Al
@@ -9,7 +9,7 @@ Section Headers:
  +\[ 4\] \.bss +NOBITS +00000000 00004c 000000 00 +WA +0 +0 +1
  +\[ 5\] \.stack +PROGBITS +00000000 00004c 000004 00 +WA +0 +0 +1
  +\[ 6\] \.cranges +PROGBITS +00000000 000050 00001e 00 +W +0 +0 +1
- +\[ 7\] \.rela\.cranges +RELA +00000000 000274 000024 0c +9 +6 +4
+ +\[ 7\] \.rela\.cranges +RELA +00000000 [0-9a-f]+ 000024 0c +9 +6 +4
  +\[ 8\] \.shstrtab +STRTAB +00000000 00006e 00004d 00 +0 +0 +1
  +\[ 9\] \.symtab +SYMTAB .*
  +\[10\] \.strtab +STRTAB .*
index 81c3942829d83da627eb46874993cdb7a0835c88..f0df51bc59f48558085188c449fe1a3dfa60be87 100644 (file)
@@ -1,4 +1,4 @@
-There are 11 section headers, starting at offset 0x128:
+There are 11 section headers, starting at offset .*:
 
 Section Headers:
  +\[Nr\] Name +Type +Addr +Off +Size +ES Flg Lk Inf Al
@@ -9,7 +9,7 @@ Section Headers:
  +\[ 4\] \.bss +NOBITS +00000000 000090 000000 00 +WA +0 +0 +1
  +\[ 5\] \.stack +PROGBITS +00000000 000090 000004 00 +WA +0 +0 +1
  +\[ 6\] \.cranges +PROGBITS +00000000 000094 000046 00 +W +0 +0 +1
- +\[ 7\] \.rela\.cranges +RELA +00000000 0002e0 000054 0c +9 +6 +4
+ +\[ 7\] \.rela\.cranges +RELA +00000000 [0-9a-f]+ 000054 0c +9 +6 +4
  +\[ 8\] \.shstrtab +STRTAB +00000000 0000da 00004d 00 +0 +0 +1
  +\[ 9\] \.symtab +SYMTAB +00000000 [0-9a-f]+ [0-9a-f]+ 10 +10 +[0-9]+ +4
  +\[10\] \.strtab +STRTAB +00000000 [0-9a-f]+ [0-9a-f]+ 00 +0 +0 +1
index 68529f8c3d2768c5e456c779407d3cfef457e59d..3a3942c85db9228057542664c97d53f44434b370 100644 (file)
@@ -4,7 +4,7 @@
 #source: common.s
 #readelf: -Ss
 
-There are 6 section headers, starting at offset 0x7c:
+There are 6 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
@@ -12,8 +12,8 @@ Section Headers:
   \[ 1\] \.far              NOBITS          00000080 000080 000008 00  WA  0   0  4
   \[ 2\] \.bss              NOBITS          00000100 000080 000004 00  WA  0   0  4
   \[ 3\] \.shstrtab         STRTAB          00000000 000054 000025 00      0   0  1
-  \[ 4\] \.symtab           SYMTAB          00000000 00016c 000050 10      5   3  4
-  \[ 5\] \.strtab           STRTAB          00000000 0001bc 000005 00      0   0  1
+  \[ 4\] \.symtab           SYMTAB          00000000 [0-9a-f]+ 000050 10      5   3  4
+  \[ 5\] \.strtab           STRTAB          00000000 [0-9a-f]+ 000005 00      0   0  1
 Key to Flags:
   W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\)
   I \(info\), L \(link order\), G \(group\), T \(TLS\), E \(exclude\), x \(unknown\)
index 1fe043b5b5b23e0f4af6a4e221e5af0d76004fbb..2e0c830c370b6eb9b28999c1fcb1e042fb8cd155 100644 (file)
@@ -1,4 +1,4 @@
-There are 17 section headers, starting at offset 0x21c4:
+There are 17 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index 1fe043b5b5b23e0f4af6a4e221e5af0d76004fbb..2e0c830c370b6eb9b28999c1fcb1e042fb8cd155 100644 (file)
@@ -1,4 +1,4 @@
-There are 17 section headers, starting at offset 0x21c4:
+There are 17 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index 1fe043b5b5b23e0f4af6a4e221e5af0d76004fbb..2e0c830c370b6eb9b28999c1fcb1e042fb8cd155 100644 (file)
@@ -1,4 +1,4 @@
-There are 17 section headers, starting at offset 0x21c4:
+There are 17 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index 1fe043b5b5b23e0f4af6a4e221e5af0d76004fbb..2e0c830c370b6eb9b28999c1fcb1e042fb8cd155 100644 (file)
@@ -1,4 +1,4 @@
-There are 17 section headers, starting at offset 0x21c4:
+There are 17 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index 74b090e2baddb25ec98566f992615ae6f54bbc76..db1c560097bf8be53590f9e56961c8c7d8aff8e5 100644 (file)
@@ -1,4 +1,4 @@
-There are 18 section headers, starting at offset 0x2168:
+There are 18 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index 9c0610d8428ba39a4c938b62553ad2f178918e73..086f21abb18ecc22e0cc4ee8899ea8edfd6ea698 100644 (file)
@@ -1,4 +1,4 @@
-There are 18 section headers, starting at offset 0x2168:
+There are 18 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index 5cba27ed66e91851ad548938df12db373dafa17b..f09738cbcbad5f3a6dbc9efeb7a294dcb6e23d4b 100644 (file)
@@ -1,4 +1,4 @@
-There are 17 section headers, starting at offset 0x2158:
+There are 17 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index 7119945a39aa1e7ff6e12a9ea699a5f850fc1dbb..a49fc05ce9a5ee15ddc91fb7473bfcfd9c30b107 100644 (file)
@@ -1,4 +1,4 @@
-There are 17 section headers, starting at offset 0x2158:
+There are 17 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index b4de2e5be6ec5aefa21dffed7e6c79f26a3dbd9b..3575d4c90e3f8c918e34874f1ba111075780e98a 100644 (file)
@@ -1,4 +1,4 @@
-There are 18 section headers, starting at offset 0x21cc:
+There are 18 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index ebe36753bff52dc54f55a3372a5bc91b94f7b211..81a45f9c091e5b2b442083f9e48943e3b840dbf2 100644 (file)
@@ -1,4 +1,4 @@
-There are 15 section headers, starting at offset 0x2180:
+There are 15 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index ebe36753bff52dc54f55a3372a5bc91b94f7b211..81a45f9c091e5b2b442083f9e48943e3b840dbf2 100644 (file)
@@ -1,4 +1,4 @@
-There are 15 section headers, starting at offset 0x2180:
+There are 15 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index 66bde12067b721dbc629f5d9864f76c4fd7f5fc5..0ddcd63aadf860a6f871e5dd960e1fd569a130e6 100644 (file)
@@ -1,4 +1,4 @@
-There are 15 section headers, starting at offset 0x2178:
+There are 15 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index 66bde12067b721dbc629f5d9864f76c4fd7f5fc5..0ddcd63aadf860a6f871e5dd960e1fd569a130e6 100644 (file)
@@ -1,4 +1,4 @@
-There are 15 section headers, starting at offset 0x2178:
+There are 15 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index 94c1e82e3aaca2a417ea579f5736abd92b05934f..df3e94c335bffe7d4b919dd7cbf0618efdc59855 100644 (file)
@@ -3,7 +3,7 @@
 #readelf: -d -S --wide
 #target: x86_64-*-linux*
 
-There are 9 section headers, starting at offset 0x1d4:
+There are 9 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
index 6cc810133e10b92df842934bb65fb3969a2e79df..edc3e0b44e04e73e11408dace03347e2958f6888 100644 (file)
@@ -1,4 +1,4 @@
-There are 9 section headers, starting at offset 0x80:
+There are 9 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Address          Off    Size   ES Flg Lk Inf Al
index 6cc810133e10b92df842934bb65fb3969a2e79df..edc3e0b44e04e73e11408dace03347e2958f6888 100644 (file)
@@ -1,4 +1,4 @@
-There are 9 section headers, starting at offset 0x80:
+There are 9 section headers, starting at offset .*:
 
 Section Headers:
   \[Nr\] Name              Type            Address          Off    Size   ES Flg Lk Inf Al