This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Linker question
- From: Michael Trimarchi <trimarchi at gandalf dot sssup dot it>
- To: binutils at sources dot redhat dot com
- Date: Fri, 22 Jul 2005 15:27:31 +0200
- Subject: Linker question
Hi all,
I have a software project. The first one is compiled with the arm 2.95.2
arm cross toolchain and the second one is width the arm 3.3.3 . I have a
lot of char array and each one in different object file. If I compile
and link width the first toolchain the char arrays are 4 byte aligh
maybe because they are in different object file but if I compile and
link width the second one I have a lot of these not align at 4byte. I
fix this behavior with the align directive at source code level and I
build another toolchain forcing the data align at 32 bit. The ld version
is 2.15 for the gcc 3.3.3 .... Any of us know what is changed?
Regards Michael