bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/1353] New: unused output section statements does not affect dot


From: andrew dot lunn at ascom dot ch
Subject: [Bug ld/1353] New: unused output section statements does not affect dot
Date: 19 Sep 2005 07:34:25 -0000

As email archive for the discussion with the title "Change in .ld syntax or a 
bug?".

It appears that an empty section does not cause . to be set correctly. This
affects eCos when compiling for the synthetic target which has an empty .vectors
section first with an absolute address. The following sections should follow on,
but since . it incorrect, the following sections are placed in incorrect
addresses where there is no ram.

A test case will be attached soon. Unpack the test case and then go into 
directory:

testcase/hal/common/current

In that directory do:

~/pkgs/binutils/build/ld/ld-new -v --eh-frame-hdr -m elf_i386 -dynamic-linker
/lib/ld-linux.so.2 -o context -L../../../install/lib
-L/usr/lib/gcc/i486-linux-gnu/4.0.2 -L/usr/lib/gcc/i486-linux-gnu/4.0.2
-L/usr/lib/gcc/i486-linux-gnu/4.0.2/../../../../lib
-L/usr/lib/gcc/i486-linux-gnu/4.0.2/../../.. -L/lib/../lib -L/usr/lib/../lib
tests/context.o --gc-sections -static -Ttarget.ld

When the bug occurs the following output will occur:
 /home/lunn/pkgs/binutils/build/ld/ld-new: address 0x2e707 of context section
.text is not within region rom
/home/lunn/pkgs/binutils/build/ld/ld-new: address 0x30a18 of context section
.rodata is not within region rom
/home/lunn/pkgs/binutils/build/ld/ld-new: address 0x30ac8 of context section
.eh_frame is not within region rom
/home/lunn/pkgs/binutils/build/ld/ld-new: address 0x2e707 of context section
.text is not within region rom
/home/lunn/pkgs/binutils/build/ld/ld-new: address 0x30a18 of context section
.rodata is not within region rom
/home/lunn/pkgs/binutils/build/ld/ld-new: address 0x30a78 of context section
.eh_frame is not within region rom

-- 
           Summary: unused output section statements does not affect dot
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: amodra at bigpond dot net dot au
        ReportedBy: andrew dot lunn at ascom dot ch
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=1353

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]