This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]