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: [email protected]
ReportedBy: [email protected]
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.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils