This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ld uses builtin default despite -Ttext-segment=ORG
- From: John Reiser <jreiser at bitwagon dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Mon, 24 May 2010 08:16:56 -0700
- Subject: ld uses builtin default despite -Ttext-segment=ORG
ld from binutils-2.20.1 fails to honor -Ttext-segment=ORG
when processing 64-bit binaries on a 32-bit host. Instead
the text segment gets its address PT_LOAD.p_vaddr from the
default builtin linker script, ignoring the comandline parameter.
The bug, including a short testcase, is:
http://www.sourceware.org/bugzilla/show_bug.cgi?id=11628
I'd like to get this fixed, am diving in to investigate,
and probably will discover where the commandline value
was overwritten or ignored. But that might not give a good clue
about the proper fix. Maintainers please comment. Thank you.
--