diff options
author | WANG Xuerui <git@xen0n.name> | 2023-07-02 18:14:22 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2023-07-03 09:00:33 +0800 |
commit | 4bf2114b634413e224c990593455168b873519d9 (patch) | |
tree | a3ccbe9df53c8d5d1b5663cd0dec639abf090455 /binutils | |
parent | 512a0bc4fe484ece34566c038687cbdf7a97c812 (diff) | |
download | gdb-4bf2114b634413e224c990593455168b873519d9.zip gdb-4bf2114b634413e224c990593455168b873519d9.tar.gz gdb-4bf2114b634413e224c990593455168b873519d9.tar.bz2 |
LoongArch: gas: Fix shared builds
Formerly an include of libbfd.h was added in commit 56576f4a722
("LoongArch: gas: Add support for linker relaxation."), in order to
allow calling _bfd_read_unsigned_leb128 from gas, but doing so broke
shared builds. Commit d2fddb6d783 fixed this reference but did not
remove the now unnecessary inclusion of libbfd.h. The gas_assert macro
expands into a conditional call to abort(), but "abort" is re-defined to
_bfd_abort in libbfd.h, so the extra include breaks any gas_assert
usage, and should be removed.
gas/ChangeLog:
* config/tc-loongarch.c: Don't include libbfd.h.
Fixes: d2fddb6d783 ("LoongArch: Fix ld "undefined reference" error with --enable-shared")
Signed-off-by: WANG Xuerui <git@xen0n.name>
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions