ld/scripttempl/elf.sc broken with ksh
Graeme Peterson
gp@qnx.com
Wed Jun 5 12:02:00 GMT 2002
Hi.
I have /bin/sh pointing to ksh on my QNX and Linux machines.
As a result I noticed that the addition of .tbss to elf.sc
does not work with ksh, but it does work with bash.
I get the same results under QNX-6.2.0 and Linux RedHat-7.1.
$ ksh ./elf.sc | grep " .tbss"
.tbss 0 : { *(.tbss
$ bash ./elf.sc | grep " .tbss"
.tbss 0 : { *(.tbss) }
Note the missing closing braces.
As a result, ld gets a parse error if it is configured with
/bin/sh pointing to ksh.
The line is at line 314 in elf.sc:
.tbss ${RELOCATING-0} : { *(.tbss${RELOCATING+ .tbss.* .gnu.linkonce.tb.*) *(.tcommon}) }
Should this work with ksh? I would really like it to.
Thanks.
GP
More information about the Binutils
mailing list