mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
4d9e2e53b9
* testsuite/ld-elf/dt-relr-1.s: New file. * testsuite/ld-elf/dt-relr-1a.d: Likewise. * testsuite/ld-elf/dt-relr-1b.d: Likewise. * testsuite/ld-elf/dt-relr-1c.d: Likewise. * testsuite/ld-elf/dt-relr-2.s: Likewise. * testsuite/ld-elf/dt-relr-2a.d: Likewise. * testsuite/ld-elf/dt-relr-2b.d: Likewise. * testsuite/ld-elf/dt-relr-2c.d: Likewise. * testsuite/ld-elf/dt-relr-2d.d: Likewise. * testsuite/ld-elf/dt-relr-2e.d: Likewise. * testsuite/ld-elf/dt-relr-2f.d: Likewise. * testsuite/ld-elf/dt-relr-2g.d: Likewise. * testsuite/ld-elf/dt-relr-2h.d: Likewise. * testsuite/ld-elf/dt-relr-3.s: Likewise. * testsuite/ld-elf/dt-relr-3a.d: Likewise. * testsuite/ld-elf/dt-relr-3b.d: Likewise. * testsuite/ld-i386/dt-relr-1.s: Likewise. * testsuite/ld-i386/dt-relr-1a.d: Likewise. * testsuite/ld-i386/dt-relr-1b.d: Likewise. * testsuite/ld-x86-64/dt-relr-1a-x32.d: Likewise. * testsuite/ld-x86-64/dt-relr-1a.d: Likewise. * testsuite/ld-x86-64/dt-relr-1b-x32.d: Likewise. * testsuite/ld-x86-64/dt-relr-1b.d: Likewise. * testsuite/ld-x86-64/dt-relr-1.s: Likewise. * testsuite/ld-i386/i386.exp: Run dt-relr-1a and dt-relr-1b. * testsuite/ld-x86-64/x86-64.exp: Run dt-relr-1a, dt-relr-1a-x32 dt-relr-1b and dt-relr-1b-x32.
31 lines
966 B
Makefile
31 lines
966 B
Makefile
#source: dt-relr-1.s
|
|
#as: --32
|
|
#ld: -shared -melf_i386 $DT_RELR_LDFLAGS -z nocombreloc
|
|
#readelf: -r -s --wide
|
|
#target: x86_64-*-linux* i?86-*-linux-gnu i?86-*-gnu*
|
|
|
|
Relocation section '\.rel\.bar' at offset [0x0-9a-f]+ contains 1 entry:
|
|
+Offset +Info +Type +Sym. Value +Symbol's Name
|
|
[0-9a-f]+ +[0-9a-f]+ +R_386_32 +0+ +data1
|
|
|
|
Relocation section '\.rel\.foo' at offset [0x0-9a-f]+ contains 1 entry:
|
|
+Offset +Info +Type +Sym. Value +Symbol's Name
|
|
[0-9a-f]+ +[0-9a-f]+ +R_386_32 +0+ +data1
|
|
|
|
Relocation section '\.rel\.plt' at offset 0x[0-9a-f]+ contains 1 entry:
|
|
+Offset +Info +Type +Sym. Value +Symbol's Name
|
|
[0-9a-f]+ +[0-9a-f]+ +R_386_JUMP_SLOT +0+ +func1
|
|
|
|
Relocation section '.relr.dyn' at offset 0x[a-f0-9]+ contains 2 entries:
|
|
+3 offsets
|
|
[a-f0-9]+
|
|
[a-f0-9]+
|
|
[a-f0-9]+
|
|
|
|
#...
|
|
Symbol table '.symtab' contains [0-9]+ entries:
|
|
Num: Value Size Type Bind Vis Ndx Name
|
|
#...
|
|
+[a-f0-9]+: 00000000 0 NOTYPE LOCAL DEFAULT 1 __ehdr_start
|
|
#pass
|