|
From: | Nick Clifton |
Subject: | Re: incorrect alignment in .scommon section |
Date: | Wed, 10 May 2006 12:36:59 +0100 |
User-agent: | Thunderbird 1.5 (X11/20051201) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |