Browse Source
bfd/ PR bfd/14207 * elf.c (assign_file_positions_for_non_load_sections): Abort if PT_GNU_RELRO segment doesn't fit in PT_LOAD segment. ld/testsuite/ PR ld/14207 * ld-x86-64/x86-64.exp: Run pr14207. * ld-x86-64/pr14207.d: New file. * ld-x86-64/pr14207.s: Likewise.cygwin-64bit-branch
6 changed files with 53 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||
#name: PR ld/14207 |
|||
#as: --64 |
|||
#ld: -melf_x86_64 -shared -z relro -z now |
|||
#readelf: -l --wide |
|||
|
|||
#failif |
|||
#... |
|||
NULL +.* |
|||
#... |
|||
@ -0,0 +1,24 @@ |
|||
|
|||
.section .ctors, "aw" |
|||
.space 0x10, 1 |
|||
|
|||
.section .dtors, "aw" |
|||
.space 0x10, 2 |
|||
|
|||
.section .jcr, "aw" |
|||
.space 0x8, 3 |
|||
|
|||
.section .data.rel.ro |
|||
.p2align 4 |
|||
.space 0x20, 3 |
|||
|
|||
.section .dynamic |
|||
.space 0xb0, 2 |
|||
|
|||
.section .got |
|||
.space 0x2a8, 4 |
|||
|
|||
.bss |
|||
.zero 0x840 |
|||
|
|||
|
|||
Loading…
Reference in new issue