|
From: Andrew K. <sup...@gm...> - 2018-04-06 17:05:43
|
On Fri, Apr 6, 2018, 1:01 PM Tom Hughes <to...@co...> wrote: > On 06/04/18 17:07, John Reiser wrote: > >> I had a look at readelf output and the layout of the lld-linked object > >> file looks sane to me. > > > > Well then, _you_ can fix it. > > > > If you want help, then please show the output from > > readelf --headers ./test > > both with and without -fuse-ld=lld . > > [Especially because lld is not readily available: not packaged in > > Fedora, for instance.] > > I debugged it with him on IRC last night - the issue is that it > has a third segment that is RO and which contains the eh_frame > section. > > I knocked up a patch last night that seemed to fix it for me > though apparently not for Andrew. > The patch fixes this use case: gcc -c test.c -g; ld.lld -o test test.o However not this use case: clang -c test.c -g; ld.lld -o test test.o > Tom > > -- > Tom Hughes (to...@co...) > http://compton.nu/ > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers > |