This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ld/scripttempl/elf.sc broken with ksh
- From: "Graeme Peterson" <gp at qnx dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 5 Jun 2002 15:05:52 -0400 (EDT)
- Subject: ld/scripttempl/elf.sc broken with ksh
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