binutils-gdb/ld/testsuite/ld-elf/noload-3.t
H.J. Lu ace7938838 bfd/
2008-01-07  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/5522
	* elflink.c (elf_link_input_bfd): Don't write out a section if
	its output section is marked with SEC_NEVER_LOAD.

ld/testsuite/

2008-01-07  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/5522
	* ld-elf/noload-3.d: New file.
	* ld-elf/noload-3.s: Likewise.
	* ld-elf/noload-3.t: Likewise.
2008-01-07 16:45:35 +00:00

8 lines
112 B
Raku

SECTIONS
{
.foo2 : { *(.foo2) }
.foo1 : { *(.foo1) }
.foo (NOLOAD) : { *(.foo) }
/DISCARD/ : { *(*) }
}