old-cross-binutils/ld/testsuite/ld-shared/elf-offset.ld
Ken Raeburn 687788cd4b * config/default.exp (get_link_files, get_target_emul): New procs;
run shell commands to extract information from configure.host and
	configure.tgt in the source tree.
	(top level): Use them to get information needed to run tests, if
	not otherwise provided.

Should allow running of at least some of the tests by releng.

	* ld-shared/elf-offset.ld: New file.  Builds a shared library, but
	gives non-zero addresses for memory region.
	* ld-shared/shared.exp: Run the non-PIC non-AIX test again using
	the new linker script.

PR ld/17962 -- not fixed, but customer has what should be an adequate
workaround.
1999-01-03 16:03:47 +00:00

33 lines
1.3 KiB
Text

PHDRS {
code PT_LOAD FLAGS(5);
data PT_LOAD FLAGS(6);
dynamic PT_DYNAMIC FLAGS(6);
}
MEMORY {
RAM : ORIGIN = 0x10000, LENGTH = 0x7fffff
}
SECTIONS {
.text : { *(.text) *(.stub) *(.gnu.warning) *(.gnu.linkonce.t*) } > RAM :code
.plt : { *(.plt) } > RAM :code
.rodata : { *(.rodata) } > RAM :code
.rdata : { *(.rdata) } > RAM :code
.data ALIGN(0x1000) : { *(.data) *(.gnu.linkonce.d*) } > RAM :data
.got : { *(.got) *(.got.plt) } > RAM :data
.bss : { *(.bss) *(.dynbss) *(COMMON) } > RAM :data
.dynamic : { *(.dynamic ) } > RAM :dynamic :data
.dynsym : { *(.dynsym) } > RAM :dynamic :data
.dynstr : { *(.dynstr) } > RAM :dynamic :data
.rela.text : { *(.rela.text) } > RAM :dynamic :data
.rela.plt : { *(.rela.plt) } > RAM :dynamic :data
.rela.data : { *(.rela.data) } > RAM :dynamic :data
.rel.text : { *(.rel.text) } > RAM :dynamic :data
.rel.plt : { *(.rel.plt) } > RAM :dynamic :data
.rel.data : { *(.rel.data) } > RAM :dynamic :data
.hash : { *(.hash) } > RAM :dynamic :data
.interp : { *(.interp) } > RAM :dynamic :data
.gnu.version_r : { *(.gnu.version_r) } > RAM :dynamic :data
.gnu.version_d : { *(.gnu.version_d) }> RAM :dynamic :data
.gnu.version : { *(.gnu.version) } > RAM :dynamic :data
}