This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "ld --verbose" omits SECTIONS-to-PHDRS mapping


>> However, the output omits the PHDRS paragraph and the mapping from
>> SECTIONS to PHDRS.

Nick wrote:
> Not according to the tests that I ran.  Can you provide an example that demonstrates the problem ?  Plus - which version of the linker are you using ?  If it is not one built from the current head of the mainline sources then this might be the source of your problem.

The output from my "ld --verbose" starts:
-----
GNU ld version 2.21.51.0.6-2.fc15 20110118
  Supported emulations:
   elf_x86_64
   elf32_x86_64
   elf_i386
   i386linux
   elf_l1om
using internal linker script:
==================================================
/* Script for -z combreloc: combine and sort reloc sections */
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64",
              "elf64-x86-64")
OUTPUT_ARCH(i386:x86-64)
ENTRY(_start)
SEARCH_DIR("/usr/x86_64-redhat-linux/lib64"); SEARCH_DIR("/usr/local/lib64"); SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64"); SEARCH_DIR("/usr/x86_64-redhat-linux/lib"); SEARCH_DIR("/usr/lib64"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib");
SECTIONS
{
	...
-----
and the full output includes no PHDRS paragraph.

When I tried building binutils from today's CVS:
	cvs -z 9 -d :pserver:anoncvs@sourceware.org:/cvs/src co binutils
then I encountered problems.  Following the suggestion in src/binutils/README,
I made a new directory src/objdir and started:
	$ cd src/objdir
	$ ../binutils/configure --enable-targets=elf_i386 --prefix=/usr/local/binutils
	$ make

The first problem:
-----
make[1]: Entering directory `.../binutils/src/objdir/doc'
	...
../../binutils/doc/binutils.texi:8: @include `bfdver.texi': No such file or directory.
../../binutils/doc/binutils.texi:84: warning: undefined flag: VERSION.
makeinfo: Removing output file `binutils.info' due to errors; use --force to preserve.
make[1]: *** [binutils.info] Error 1
-----

After a web search on "bfdver.texi 2011", I found
	http://www.mail-archive.com/commits@crater.dragonflybsd.org/msg17596.html
and so created likely files
	src/bfd/bfdver.h
	src/bfd/doc/bfdver.texi

The second problem:
-----
make[2]: Entering directory `.../binutils/src/objdir'
	...
make[2]: *** No rule to make target `../libiberty/libiberty.a', needed by `size'.  Stop.
-----

How should I overcome this problem with libiberty.a?

-- 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]