asan: linker.c:2294:8: runtime error: load of value 253
authorAlan Modra <amodra@gmail.com>
Tue, 30 Mar 2021 02:33:30 +0000 (13:03 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 30 Mar 2021 03:17:18 +0000 (13:47 +1030)
commitd1cbe0076a4b6442793121413a0d3b52ae19727e
tree0667f272160801b631e8adda6e70729acdc0f164
parent0af4fcc25dd5e2f98698da03396084258ebfb756
asan: linker.c:2294:8: runtime error: load of value 253

Seen after converting bfd_boolean to bool.
mmix  +FAIL: ld-mmix/zeroehmmo

./ld-new   -L/home/alan/src/binutils-gdb/ld/testsuite/ld-mmix  -m mmo -Ttext 0xa00 -T /home/alan/src/binutils-gdb/ld/testsuite/ld-mmix/zeroeh.ld -o tmpdir/dump tmpdir/x.o tmpdir/y.o
/home/alan/src/binutils-gdb/bfd/linker.c:2294:8: runtime error: load of value 253, which is not a valid value for type '_Bool'

* elflink.c (elf_link_add_object_symbols): Don't set h->indx
unless is_elf_hash_table.
bfd/ChangeLog
bfd/elflink.c