This is the mail archive of the binutils@sourceware.org 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]

Help needed: File reading problems in gas?


Hi,

condensed from a configure test, I ran into the following strange problem:

Running the shell script


#!/bin/sh
gcc_cv_as=as
gcc_cv_ld=ld
rm -f conftest.s
cat > conftest.s <<EOF
        .section .rodata,"a",@progbits
        .global xxvaryy
    xxvaryy:
        .word 1
EOF
ls -al conftest.s
cat conftest.s
ac_try='$gcc_cv_as conftest.s -o conftest.o \
        && $gcc_cv_ld conftest.o -o conftest.elf '
eval $ac_try


I am getting the following output:


-rw-rw---- 1 georg users 92 Jun  8 11:12 conftest.s
        .section .rodata,"a",@progbits
        .global xxvaryy
    xxvaryy:
        .word 1
conftest.s: Assembler messages:
conftest.s: Error: can't open   for reading: No such file or directory

It works if

- remove the "&& ld..." part of ac_try
- the content of ac_try is executed directly (without eval)

I tried with several as versions (on x86_64):

- GNU assembler version 2.26.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.26.1 - GNU assembler version 2.28.51 (avr) using BFD version (GNU Binutils) 2.28.51.20170505

OS is Ubuntu 4.4.0-78.99-generic 4.4.62

Any ideas?

Johann


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