[patch] Fix duplicated command SIZEOF_HEADERS in Linking emitter
Original Reporter info from Mantis: LkpPo
-
Reporter name: Stéphane Aulery
Original Reporter info from Mantis: LkpPo
- Reporter name: Stéphane Aulery
Description:
Following discussion and testing with HJ on a bug report (# 18344) of ld, it seems that what is explained in the FAQ about the linking and the -T option is not everything true.
The code ". = 0 + SIZEOF_HEADERS;", issued for the Linux version is too much if
"PROVIDE (__executable_start = 0x0400000); . = 0x0400000 + SIZEOF_HEADERS;"
is present.
Removing ". = 0 + SIZEOF_HEADERS;" the linkage works always and more it becomes possible to call ld with the -T option.
I tested with the compilation of the msg2inc utility, it works. I wanted to test with compiling the compiler, it gets complicated.
Who can help me please?
Additional information:
Patch made against trunk
Mantis conversion info:
- Mantis ID: 27994
- Monitored by: » LkpPo (Stéphane Aulery)