https://sourceware.org/bugzilla/show_bug.cgi?id=33187

--- Comment #1 from Pali Rohár <pali at kernel dot org> ---
Created attachment 16965
  --> https://sourceware.org/bugzilla/attachment.cgi?id=16965&action=edit
Keep PE .edata and .reloc sections

With big help from LIU Hao, I was able to fix this issue.

Sections .edata and .reloc are used for generating PE data directories:
IMAGE_DIRECTORY_ENTRY_EXPORT and IMAGE_DIRECTORY_ENTRY_BASERELOC
They just need to be marked with KEEP in the linker script and --gc-sections
will not erase them.

I'm attaching a patch which address this issue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to