[PATCH] ld: Update mixed LTO and none-LTO relocatable output tests

Alan Modra amodra@gmail.com
Wed Jan 15 05:49:19 GMT 2025


x86_64-w64-mingw32/ld
valgrind ./ld-new   -o tmpdir/pr19317-r.o  -L/home/alan/src/binutils-virgin/ld/testsuite/ld-plugin -r tmpdir/pr19317.o --no-error-execstack tmpdir/dummy.o

==1538167== 
==1538167== Invalid read of size 8
==1538167==    at 0x155A90: lang_insert_orphan (ldlang.c:1997)
==1538167==    by 0x166561: gldi386pep_place_orphan (ei386pep.c:2061)
==1538167==    by 0x15232B: ldlang_place_orphan (ldlang.c:7479)
==1538167==    by 0x15232B: lang_place_orphans (ldlang.c:7535)
==1538167==    by 0x158D53: cmdline_emit_object_only_section (ldlang.c:10872)
==1538167==    by 0x143062: main (ldmain.c:653)
==1538167==  Address 0x4b47b00 is 832 bytes inside a block of size 4,064 free'd
==1538167==    at 0x484988F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==1538167==    by 0x2605EA: objalloc_free (objalloc.c:187)
==1538167==    by 0x18ECB0: bfd_hash_table_free (hash.c:504)
==1538167==    by 0x14F9F3: output_section_statement_table_free (ldlang.c:1361)
==1538167==    by 0x14F9F3: lang_finish (ldlang.c:1400)
==1538167==    by 0x142B48: main (ldmain.c:579)
==1538167==  Block was alloc'd at
==1538167==    at 0x4846828: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==1538167==    by 0x2604A0: objalloc_create (objalloc.c:95)
==1538167==    by 0x18EBD3: bfd_hash_table_init_n (hash.c:441)
==1538167==    by 0x150ECD: output_section_statement_table_init (ldlang.c:1351)
==1538167==    by 0x150ECD: lang_init (ldlang.c:1377)
==1538167==    by 0x142720: main (ldmain.c:397)

-- 
Alan Modra


More information about the Binutils mailing list