This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Unrelocated output sections
- From: Nick Clifton <nickc at redhat dot com>
- To: Simon Richter <Simon dot Richter at hogyros dot de>, binutils at sourceware dot org
- Date: Tue, 18 Jul 2017 17:08:11 +0100
- Subject: Re: Unrelocated output sections
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=nickc at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 08D11267DB
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 08D11267DB
- References: <bf1990a6-a738-e154-2017-2f6385516bc3@hogyros.de>
Hi Simon,
> Is it possible to have LD create an output binary that contains
> relocation information for the "movable" segment even if the rest of the
> system is fully linked?
Short answer: no. :-(
You could create two separate binaries, one fully linked, and one relocatable
and then join them together, (possibly using objcopy), although I am not sure
how easy this will be.
Sorry. Of course you can always create a patch to the linker to provide this
kind of functionality, but I think that it will be hard to do...
Cheers
Nick