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: linker operation sequence issue


>It sounds to me like you are trying to size .eh_frame_hdr too late,
>ie. after strip_excluded_output_sections has run.  That's a bad idea.
>You can prevent the output section being stripped, by setting
>SEC_LINKER_CREATED on one of its input sections, but that will mean
>all executables have an .eh_frame_hdr section.

That certainly I don't want.

>You say that you want to "make .eh_frame_hdr generation independent of
>the use of dynamic linking".  OK, but why doesn't the current sizing
>scheme work for you with just a small change in
>bfd_elf_size_dynamic_sections?  ie. Move the call to
>_bfd_elf_maybe_strip_eh_frame_hdr up a few lines before the dynobj
>test?

As you've probably seen in the patch, that is part of what I'm doing,
but not enough.

Jan


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