Re: /usr/bin/ld.lld on powerpc64: produces a.out for which: ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/powerpc64/reloc.c:374

2017-01-19 Thread Roman Divacky
Type = 38 should be R_ABS so thats fine. If what I expected to be in .got is in .got.plt, what happens if you modify the getPPC64TocBase() to use ::GotPlt instead of ::Got ? On Thu, Jan 19, 2017 at 01:46:02AM -0800, Mark Millard wrote: > I should have noted that -pie gets the same sort of >

Re: elfdump doesn't support .a files?

2017-01-19 Thread Ed Maste
On 17 January 2017 at 18:06, Ngie Cooper (yaneurabeya) wrote: > Hi Ed, > I tried running elfdump on a .a archive and it seems that elfdump > doesn’t support this (whereas objdump does). Is this expected? Indeed it does not. We're still using FreeBSD's original

Re: /usr/bin/ld.lld on powerpc64: produces a.out for which: ld-elf.so.1: assert failed: /usr/src/libexec/rtld-elf/powerpc64/reloc.c:374

2017-01-19 Thread Mark Millard
I should have noted that -pie gets the same sort of readonly segment errors as -shared did: # clang -fuse-ld=lld -g -pie empty_src.c Type = 50 Type = 64 Type = 50 Type = 64 Type = 50 Type = 64 Type = 50 Type = 64 Type = 50 Type = 64 Type = 10 Type = 10 Type = 50 Type = 64 Type = 50 Type = 48 Type