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: PATCH: ld/1467: Orphaned section is put in the odd place


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



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