https://sourceware.org/bugzilla/show_bug.cgi?id=22067

--- Comment #1 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Running ld from master under valgrind suggests the out-of-bounds
access is still there:

$ valgrind --quiet /home/slyfox/dev/git/binutils-gdb-x86_64/ld/ld-new -T
memtest.bin.lds bootsect.o setup.o -b binary memtest_shared.bin -o memtest.bin
==15789== Invalid read of size 4
==15789==    at 0x194D98: _bfd_x86_elf_link_check_relocs (elfxx-x86.c:826)
==15789==    by 0x152A2A: lang_check_relocs (ldlang.c:7052)
==15789==    by 0x152A2A: lang_process (ldlang.c:7260)
==15789==    by 0x1407A3: main (ldmain.c:432)
==15789==  Address 0x5411738 is 0 bytes after a block of size 72 alloc'd
==15789==    at 0x4C2CEAF: malloc (vg_replace_malloc.c:299)
==15789==    by 0x17DA02: bfd_malloc (libbfd.c:193)
==15789==    by 0x17EC92: _bfd_generic_link_hash_table_create (linker.c:753)
==15789==    by 0x14EA47: open_output (ldlang.c:3184)
==15789==    by 0x14EA47: ldlang_open_output (ldlang.c:3198)
==15789==    by 0x14C18F: lang_for_each_statement_worker (ldlang.c:958)
==15789==    by 0x1524BF: lang_for_each_statement (ldlang.c:1001)
==15789==    by 0x1524BF: lang_process (ldlang.c:7094)
==15789==    by 0x1407A3: main (ldmain.c:432)
==15789==

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to