Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: fontconfig/freetype2 breaks amd64 build on netbsd-5/i386 host
On Tue, 25 Mar 2014, David Laight wrote:
Can you find the command line used to compile ftxf86.o ?
I'll clean out that part of my OBJDIR and rebuild to find it.
[EDIT]
Looks like it was a glitch that mangled the library and which a non-update
build on previously-populated OBJDIR and DESTDIR failed to remedy.
I deleted libfreetype.a from DESTDIR and ftxf86.* from OBJDIR and
started an update build and it continued on past the previous failure.
[/EDIT]
and/or extract the object file from the library and feed it through
'objdump -dr' to find the relocation (and to see if it looks
like PIC code at all).
Here's the result of running objdump -dr against the object file as it
exists on my filesystem (not extracted from library):
/d0/build/current/obj/amd64/external/mit/xorg/lib/freetype/ftxf86.o: file
format elf64-x86-64
Disassembly of section .text:
0000000000000000 <FT_Get_X11_Font_Format>:
0: 48 85 ff test %rdi,%rdi
3: 74 1a je 1f <FT_Get_X11_Font_Format+0x1f>
5: 48 8b bf b0 00 00 00 mov 0xb0(%rdi),%rdi
c: 48 8b 07 mov (%rdi),%rax
f: 48 8b 40 40 mov 0x40(%rax),%rax
13: 48 85 c0 test %rax,%rax
16: 74 07 je 1f <FT_Get_X11_Font_Format+0x1f>
18: be 00 00 00 00 mov $0x0,%esi
19: R_X86_64_32 .rodata.str1.1
1d: ff e0 jmpq *%rax
1f: 31 c0 xor %eax,%eax
21: c3 retq
I extracted the module from the library and ran 'objdump -dr' on it.
It's the same.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index