This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib 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]

Re: Linker scripts and GCC 4.0.1


Hi Shaun,

I've compiled newlib CVS 2005-07-28 for arm-elf with
--disable-newlib-supplied-syscalls using GCC 4.0.1. I'm trying to link
"Hello, world!" with -Trdpmon.specs and I'm seeing the following error
message:

arm-elf-gcc -Trdpmon.specs    hello.c   -o hello
/usr/local/lib/gcc/arm-elf/4.0.1/../../../../arm-elf/bin/ld:rdpmon.specs:1:
parse error
collect2: ld returned 1 exit status

Do these linker scripts work with GCC 4.0.1?

The rdpmon.specs file is not a linker script, it is a specs file. You probably want to use the -specs=rdpmon.spec switch instead of the -T switch.


Cheers
  Nick


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