[patch ld]: Adjust for i?86-w64-mingw* autoimport and rdata merge to data
Danny Smith
dansmister@gmail.com
Wed May 19 21:20:00 GMT 2010
On Thu, May 20, 2010 at 1:39 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
> Hello,
>
> This patch specifies for *-w64-mingw* triplet that for enabled
> auto-import the rdata section doesn't get merged into data section,
> when pseudo-relocation-v2 is used. For v2 there is no need (at least
> for win32) that this merge happens.
>
> ChangeLog
>
> 2010-05-19 Kai Tietz
>
> * emultempl/pe.em (default_merge_rdata): New shell variable.
> (MERGE_RDATA_V2): New macro.
> (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import selected
> script.
>
Why do we need to test a default_merge_rdata. Isn't sufficient just
to test the actual value of link_info.pei386_runtime_pseudo_reloc?
Like so:
- echo ' ; else if (link_info.pei386_auto_import == 1) return' >>
e${EMULATION_NAME}.c
+echo ' ; else if (link_info.pei386_auto_import == 1' >> e${EMULATION_NAME}.c
+echo ' && link_info.pei386_runtime_pseudo_reloc != 2)
return' >> e${EMULATION_NAME}.c
Fanny
More information about the Binutils
mailing list