View | Details | Raw Unified | Return to bug 21884
Collapse All | Expand All

(-)a/ld/emultempl/elf32.em (-1 / +2 lines)
Lines 2136-2142 gld${EMULATION_NAME}_place_orphan (asection *s, Link Here
2136
    }
2136
    }
2137
2137
2138
  /* Look through the script to see where to place this section.  */
2138
  /* Look through the script to see where to place this section.  */
2139
  if (constraint == 0)
2139
  if (constraint == 0
2140
      && link_info.output_bfd->xvec->flavour == bfd_target_elf_flavour)
2140
    for (os = lang_output_section_find (secname);
2141
    for (os = lang_output_section_find (secname);
2141
	 os != NULL;
2142
	 os != NULL;
2142
	 os = next_matching_output_section_statement (os, 0))
2143
	 os = next_matching_output_section_statement (os, 0))
(-)a/ld/testsuite/ld-elf/pr21884.d (+11 lines)
Line 0 Link Here
1
#source: pr21884a.s
2
#source: pr21884b.s
3
#ld: -T pr21884.t
4
#objdump: -b binary -s
5
#notarget: aarch64*-*-* arm*-*-* nds32*-*-*
6
# Skip targets which can't change output format to binary.
7
8
.*:     file format binary
9
10
Contents of section .data:
11
#pass
(-)a/ld/testsuite/ld-elf/pr21884.t (+7 lines)
Line 0 Link Here
1
OUTPUT_FORMAT("binary")
2
3
ENTRY(_main);
4
SECTIONS {
5
	. = 0;
6
	.setup : { *(.setup) }
7
}
(-)a/ld/testsuite/ld-elf/pr21884a.s (+5 lines)
Line 0 Link Here
1
	.text
2
	.globl	_main
3
	.type _main,%function
4
_main:
5
	.dc.a bar
(-)a/ld/testsuite/ld-elf/pr21884b.s (-1 / +5 lines)
Line 0 Link Here
0
- 
1
	.text
2
	.globl	bar
3
	.type bar,%function
4
bar:
5
	.byte 0

Return to bug 21884