diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2025-01-14 21:21:02 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2025-01-15 05:50:37 +0800 |
commit | e76d66a53ee9ef0a70fdb44a3150518fcc8086ea (patch) | |
tree | f9880673ab9d9587a174b380453671e8a289afa7 /gdb/cli | |
parent | 9d375dfebba2c10fa074c5cf0ecd0bdaef7bba7a (diff) | |
download | binutils-e76d66a53ee9ef0a70fdb44a3150518fcc8086ea.zip binutils-e76d66a53ee9ef0a70fdb44a3150518fcc8086ea.tar.gz binutils-e76d66a53ee9ef0a70fdb44a3150518fcc8086ea.tar.bz2 |
ld: Parse linker script only once
Parsing linker script twice caused
FAIL: ld-plugin/lto-3r
FAIL: ld-plugin/lto-5r
FAIL: PR ld/19317 (2)
for x86_64-w64-mingw32 with the linker error:
./ld-new:built in linker script:27 assignment to location counter invalid outside of SECTIONS
ldscripts/i386pep.xr has
24 .rdata :
25 {
26 *(.rdata)
27 . = ALIGN(4);
28 /* .ctors & .dtors */
29 /* .CRT */
30 /* ___crt_xl_end__ is defined in the TLS Directory support code */
31 }
Remove ld_parse_linker_script to parse linker script only once.
* ldlang.c (cmdline_emit_object_only_section): Don't call
ld_parse_linker_script.
* ldmain.c (main): Fold ld_parse_linker_script.
(ld_parse_linker_script): Removed.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'gdb/cli')
0 files changed, 0 insertions, 0 deletions