Bug 18097 - Gold doesn't support SORT_NONE in linker script
Summary: Gold doesn't support SORT_NONE in linker script
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: 2.26
: P2 normal
Target Milestone: ---
Assignee: Cary Coutant
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-09 16:28 UTC by H.J. Lu
Modified: 2015-03-09 16:28 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2015-03-09 16:28:46 UTC
[hjl@gnu-6 gold]$ cat foo0.s
	.section .foo,"ax",@progbits
.globl foo
	.type	foo,%function
foo:
	.byte 0
[hjl@gnu-6 gold]$ cat pr14156.t
SECTIONS {
  .foo : { *(SORT_NONE(.foo)) }
  /DISCARD/ : { *(.*) }
}
[hjl@gnu-6 gold]$ make
as   -o foo0.o foo0.s
ld.gold -T pr14156.t -o foo.so foo0.o
ld.gold: error: pr14156.t:2:23: syntax error, unexpected '('
ld.gold: fatal error: unable to parse script file pr14156.t
make: *** [foo.so] Error 1
[hjl@gnu-6 gold]$