Browse Source
When --no-keep-memory is used, the input section memory may not be cached. Allocate input section memory for -z pack-relative-relocs if needed. bfd/ PR ld/29939 * elfxx-x86.c (elf_x86_size_or_finish_relative_reloc): Allocate input section memory if needed. ld/ PR ld/29939 * testsuite/ld-elf/dt-relr-2i.d: New test.users/ahajkova/try-frob
2 changed files with 40 additions and 2 deletions
@ -0,0 +1,17 @@ |
|||
#source: dt-relr-2.s |
|||
#ld: -e _start -pie --no-keep-memory $DT_RELR_LDFLAGS |
|||
#readelf: -rW -d |
|||
#target: [supports_dt_relr] |
|||
|
|||
#... |
|||
0x[0-9a-f]+ \(RELR\) +0x[0-9a-f]+ |
|||
0x[0-9a-f]+ \(RELRSZ\) +(8|16) \(bytes\) |
|||
0x[0-9a-f]+ \(RELRENT\) +(4|8) \(bytes\) |
|||
#... |
|||
Relocation section '\.rel(a|)\.dyn' at offset 0x[0-9a-f]+ contains 1 entry: |
|||
#... |
|||
[0-9a-f]+ +[0-9a-f]+ +R_.*_(RELATIVE|UADDR.*) .* |
|||
#... |
|||
Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: |
|||
4 offsets |
|||
#pass |
|||
Loading…
Reference in new issue