mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
0920dee7ba
2007-03-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/4007 * elf.c (assign_file_positions_for_load_sections): Check if all sections are in the segment. ld/testsuite/ 2007-03-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/4007 * ld-elf/note-1.d: New file. * ld-elf/note-1.s: Likewise. * ld-elf/note-1.t: Likewise. * ld-i386/alloc.d: Likewise. * ld-i386/alloc.s: Likewise. * ld-i386/alloc.t: Likewise. * ld-i386/i386.exp: Run "alloc".
14 lines
399 B
Raku
14 lines
399 B
Raku
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
|
|
OUTPUT_ARCH(i386)
|
|
PHDRS {
|
|
text PT_LOAD FLAGS(5); /* R_E */
|
|
}
|
|
SECTIONS
|
|
{
|
|
. = 0xC0000000 + ((0x100000 + (0x100000 - 1)) & ~(0x100000 - 1));
|
|
.bar : AT(ADDR(.bar) - 0xC0000000) { *(.bar) } :text
|
|
.bss : AT(ADDR(.bss) - 0xC0000000) { *(.bss) }
|
|
.foo 0 : AT(ADDR(.bss) + SIZEOF(.bss) - 0xC0000000) { *(.foo) } :text
|
|
/DISCARD/ : { *(.*) }
|
|
}
|