Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-scripts/phdrs3.t

17 lines
340 B
Perl
Raw Normal View History

2023-03-06 14:48:14 +01:00
PHDRS
{
data PT_LOAD ;
header PT_PHDR PHDRS ; /* OK */
text PT_LOAD FILEHDR PHDRS ;
}
SECTIONS
{
/* This test will fail on architectures where the startaddress below
is less than the constant MAXPAGESIZE. */
. = 0x800000 + SIZEOF_HEADERS;
.text : { *(.text) } :text
.data : { *(.data) } :data
/DISCARD/ : { *(.*) }
}