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]

ld fails in current cvs when linking for powerpc-eabi


Hello,

when linking a small program (the uncompress code for out OS), the following
happens with the current CVS version of binutils, configured for
powerpc-eabi (in conjunction with gcc-3-cvs from today):

$ powerpc-eabi-gcc -v  -g -nostdlib -Wl,-T../lc16a.obj_d/ld.tmp -Wl,-Map,../lc16a.obj_d/lvl1ldr.map -o ../lc16a.obj_d/lvl1ldr.elf -lgcc
Reading specs from /opt/cgcc2/lib/gcc-lib/powerpc-eabi/3.0.1/specs
Configured with: /usr/local/src/gnu/gcc-3-cvs/gcc/configure --target=powerpc-eabi --prefix=/opt/cgcc2 --with-gnu-as --with-gnu-ld --with-newlib
Thread model: single
gcc version 3.0.1 20010709 (prerelease)
 /opt/cgcc2/lib/gcc-lib/powerpc-eabi/3.0.1/collect2 -V -Qy -dn -Bstatic -o ../lc16a.obj_d/lvl1ldr.elf -L/opt/cgcc2/lib/gcc-lib/powerpc-eabi/3.0.1 -L/opt/cgcc2/lib/gcc-lib/powerpc-eabi/3.0.1/../../../../powerpc-eabi/lib -T../lc16a.obj_d/ld.tmp -Map ../lc16a.obj_d/lvl1ldr.map -lgcc
/opt/cgcc2/lib/gcc-lib/powerpc-eabi/3.0.1/../../../../powerpc-eabi/bin/ld: ../lc16a.obj_d/lvl1ldr.elf: Not enough room for program headers, try linking with -N
/opt/cgcc2/lib/gcc-lib/powerpc-eabi/3.0.1/../../../../powerpc-eabi/bin/ld: final link failed: Bad value
GNU ld version 2.11.90 (with BFD 2.11.90)
  Supported emulations:
   elf32ppc
   elf32ppclinux
   elf32ppcsim
collect2: ld returned 1 exit status

binutils-2.10.1 work fine. 

The info file tells me that -N makes text and data sections read/write,
which I do not want. Am I doing somwthing wrong?

cu
Michael
-- 
In the beginning there was nothing, which exploded.


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