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: ld: --gc-sections incompatible with --emit-relocs ?


Hi David,

In that case, it means the linker should be able to emit relocations
only for non garbage collected sections. I do not see any interest in
emitting relocations for sections that have been removed.

But the linker does not know why you want the relocations emitted. For all it knows the user may need the relocations associated with the garbage collected sections. Hence it has to play safe and keep them.


Cheers
  Nick


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