bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/13343] New: cannot move location counter backwards - Error messa


From: geza.lore at broadcom dot com
Subject: [Bug ld/13343] New: cannot move location counter backwards - Error message provides useless source-file-name:lineno information
Date: Tue, 25 Oct 2011 15:54:52 +0000

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

             Bug #: 13343
           Summary: cannot move location counter backwards - Error message
                    provides useless source-file-name:lineno information
           Product: binutils
           Version: 2.22
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: ld
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


The line number and source file name information provided with the "cannot move
location counter backwards" error message always points after the last line of
the last processed linker script. This makes tracking this error down in
complex scripts difficult.

To reproduce, use this linker script to link anything with a .text section in
it:

script.ld:

SECTIONS {
    text_test_section : {
        *(.text)

        . += -1;
    }
}

E.g.:
bash$ ld -T script.ld foo.o
script.ld:9 cannot move location counter backwards (from 00000000000000b8 to
00000000000000b7)

More demonstratively:
bash$ ld -T script.ld -T /dev/null foo.o
/dev/null:1 cannot move location counter backwards (from 00000000000000b8 to
00000000000000b7)

The error should identify the correct source file and line number and the
offending output section.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

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