PATCH: ld/1467: Orphaned section is put in the odd place
Nick Clifton
nickc@redhat.com
Thu Oct 13 08:34:00 GMT 2005
Hi H.J.
>>Why is this a problem ?
> The question is which one is more reasonable,
> [ 1] .text PROGBITS 0000000000000000 00100000
> [ 2] .data PROGBITS 0000000000000004 00100004
> [ 3] .note NOTE 0000000000000008 00100008
> [ 4] .notbad PROGBITS 000000000000000c 0010000c
> [ 5] .note.bar NOTE 0000000000000010 00100010
> or
> [ 1] .text PROGBITS 0000000000000000 00100000
> [ 2] .notbad PROGBITS 0000000000000004 00100004
> [ 3] .data PROGBITS 0000000000000008 00100008
> [ 4] .note NOTE 000000000000000c 0010000c
> [ 5] .note.bar NOTE 0000000000000010 00100010
I understand that, but my question is "why should the user expect any
kind of intelligent placement of orphaned sections ?" If they are
orphaned then that implies that the user does not care about them.
On the other hand if we are going to have a policy for the placement of
orphaned sections, then it should be documented. ie your patch ought to
include an update to ld.texinfo as well.
Cheers
Nick
More information about the Binutils
mailing list