[Bug ld/23854] 16-bit GOT access is incorrectly optimized

2018-11-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23854 --- Comment #13 from H.J. Lu --- (In reply to Stas Sergeev from comment #12) > > > Btw, could you please explain why the problem > > > only happens with -export-dynamic? This doesn't > > > seem to be related to the generated asm, AFAICT. > >

[Bug ld/23854] 16-bit GOT access is incorrectly optimized

2018-11-05 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=23854 --- Comment #12 from Stas Sergeev --- (In reply to H.J. Lu from comment #11) > Please add -fno-pie as workaround. Done. This works properly. Thank you. > > Btw, could you please explain why the problem > > only happens with -export-dynamic? T

[Bug ld/23854] 16-bit GOT access is incorrectly optimized

2018-11-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23854 --- Comment #11 from H.J. Lu --- (In reply to Stas Sergeev from comment #9) > (In reply to H.J. Lu from comment #6) > > Please provide pre-processed dpmi.c from gcc -E and command-line > > options to generate dpmi.s > gcc -xc -S -fverbose-asm

[Bug ld/23854] 16-bit GOT access is incorrectly optimized

2018-11-05 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23854 H.J. Lu changed: What|Removed |Added Target||i386,x86-64 Status|WAITING