This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
LDSCRIPTS
- From: John Pierce <john dot w dot pierce at gmail dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 10 Aug 2005 19:30:43 -0500
- Subject: LDSCRIPTS
Could someone help me to understand what ldscripts are exactly, how
they relate to ldconfig (ld.so.conf), and any other pertinent
information. I have built an x86_64 single lib system and in my
ldscripts dir there are 386 scripts. I want to remove those scripts
leaving the x86_64 scripts.
This is the first part of this particular script.
elf_x86_64.x:
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64",
"elf64-x86-64")
OUTPUT_ARCH(i386:x86-64)
ENTRY(_start)
SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64");
SEARCH_DIR("/usr/local/lib64"); SEARCH_DIR("/lib64");
SEARCH_DIR("/usr/lib64"); SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib");
SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib");
SEARCH_DIR("/usr/lib");
Why does the OUTPUT_FORMAT have three of "elf64-x86-64"?
Can I remove i386 from the OUTPUT_ARCH?
When I built my 64bit libs I put them in the lib usr/lib directories,
can I remove these paths from the SEARCH_DIR's?
Why are there so many different scripts for each arch?
elf_i386.x elf_i386.xbn elf_i386.xc elf_i386.xd elf_i386.xdc
elf_i386.xdw elf_i386.xn elf_i386.xr elf_i386.xs elf_i386.xsc
elf_i386.xsw elf_i386.xu elf_i386.xw
elf_x86_64.x elf_x86_64.xc elf_x86_64.xdc elf_x86_64.xn elf_x86_64.xs
elf_x86_64.xsw elf_x86_64.xw elf_x86_64.xbn elf_x86_64.xd
elf_x86_64.xdw elf_x86_64.xr elf_x86_64.xsc elf_x86_64.xu
And are these a.out?
i386linux.x i386linux.xbn i386linux.xn i386linux.xr i386linux.xu
I tried google but there is not a lot of information out there.