[Top][All Lists]

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

[Bug gold/22694] [2.30 Regression] -fuse-ld=gold not recognized

From: amonakov at gmail dot com
Subject: [Bug gold/22694] [2.30 Regression] -fuse-ld=gold not recognized
Date: Mon, 15 Jan 2018 13:38:04 +0000


Alexander Monakov <amonakov at gmail dot com> changed:

           What    |Removed                     |Added
                 CC|                            |amonakov at gmail dot com

--- Comment #6 from Alexander Monakov <amonakov at gmail dot com> ---
Please reconsider. collect2 has always passed through -fuse-ld=<gold|bfd> to
the linker, and gold has accepted (and ignored) it until the recent commit
7ef67ba5339 that was supposed to fix PR 22042.

Now gold simply segfaults when given the option without an argument, while
before it was ignored (as intended). And the functionality that was supposed to
ignore the option does not work anymore for some reason.

$ gdb --args /mnt/build/binutils/gold/ld.gold -fuse-ld
(gdb) r
Starting program: /mnt/build/binutils/gold/ld.gold -fuse-ld
Program received signal SIGSEGV, Segmentation fault.
gold::options::parse_string (option_name=0x7fffffffe18e "-fuse-ld", arg=0x0,
address@hidden) at
253       if (*arg == '\0')
(gdb) bt
#0  gold::options::parse_string (option_name=0x7fffffffe18e "-fuse-ld",
arg=0x0, address@hidden) at
#1  0x0000000000429f03 in gold::General_options::Struct_fuse_ld::parse_to_value
(this=0x7fffffff7198, option_name=<optimized out>, arg=<optimized out>) at
#2  0x000000000065a047 in gold::Command_line::process_one_option
(address@hidden, address@hidden,
address@hidden, address@hidden,
    at /mnt/checkout/binutils-gdb/gold/options.cc:1523
#3  0x000000000065b985 in gold::Command_line::process
(address@hidden, argc=1, argv=0x7fffffffde30) at
#4  0x0000000000407c3a in main (argc=<optimized out>, argv=<optimized out>) at

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]