This is the mail archive of the binutils@sources.redhat.com 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: Problem with referenceable sections ("link sets")


On Mon, Nov 18, 2002 at 09:44:28PM -0800, Ian Lance Taylor wrote:

 > This could probably be done.  In gld${EMULATION_NAME}_place_orphan()
 > in ld/emultempl/elf32.em copy any AT statement into the call to
 > lang_leave_output_section_statement().  You will need to properly
 > adjust it for the size of the section which you are following.  This
 > will be ld expression hackery--shouldn't be too tough.

Well, this patch (against 2.11.2) almost does it ... if there is one
orphan section, the right thing happens.  But if there are two, the
two orphans get overlapped.

Am I on the right track, here?

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

Attachment: ld-orphan-patch
Description: Text document


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