This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Gcc 4.1.2 `.rela.dyn' problem for powerpc-elf target


Hello,

I have compiled the GNU toolchain for powerpc-elf target with Cygwin. The
versions for the tools are:

Binutils-2.17
gcc-4.1.2
newlib-1.15.0

and for the configure flags I used:
for gcc bootstrap:
    --target=$TARGET --prefix=$PREFIX --without-headers --with-newlib 
--with-gnu-as --with-gnu-ld --disable-softfloat

for newlib:
    --target=$TARGET --prefix=$PREFIX --enable-newlib-hw-fp
--disable-softfloat --disable-shared

and for gcc with newlib:
    --target=$TARGET --prefix=$PREFIX --with-newlib --with-gnu-as
--with-gnu-ld --disable-shared --disable-libssp --disable-softfloat

The build had no errors. Then I installed the toolchain and after that I
tried to use it with a code group I have. All the compilations for the
individual C files are OK but the linker gave the error:

The command is
powerpc-elf-gcc --nostartfiles -g -static -Tlinkcmds -o bin/sdram-test.elf
bin/sdram-test.o  ../lib/crt0.o -lbsp -lc -lnosys -static

and the error is:
"powerpc-elf/bin/ld: error: no memory region specified for loadable section
`.rela.dyn' "

Is it related to the configuration flags? I googled the error and found out
that it is because of dynamic linking and a "shared library" problem. How
can I compile the toolchain as "static"? Isn't the " --disable-shared" flag
enough for it?

Thanks.

-- 
View this message in context: http://www.nabble.com/Gcc-4.1.2-%60.rela.dyn%27-problem-for-powerpc-elf-target-tf3531087.html#a9854183
Sent from the gcc - cross compiler mailing list archive at Nabble.com.


--
For unsubscribe information see http://sourceware.org/lists.html#faq


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