Hi chenpp,

mips-elf-gcc -I. -Iinclude -Iproject/S20/conf/main -I  -O2 -fno-builtin
-nostdinc -fno-delete-null-pointer-checks -EB -mabi=eabi -msoft-float
-march=mips32  -c  pid.c -o project/S20/build/main/target/S20/uart-init.o

This command line just creates the object file. What is the command line that you use to link the object file and create the map file ?

0x00000000000b5cf2                test1 <------ unaligned !!!

This certainly does appear to be a linker problem.

Can you put together a small test case to demonstrate the problem ? I have tried using the information in your previous email, but I could not create an unaligned assignment for test1. (ie I always found that the linker was aligning test1 on a 4 byte boundary, so there must be some difference between my test and yours).

Cheers
  Nick




_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to