[Bug ld/23854] -no-pie -export-dynamic corrupts binary

2018-11-05 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=23854 --- Comment #8 from Stas Sergeev --- Created attachment 11381 --> https://sourceware.org/bugzilla/attachment.cgi?id=11381=edit preprocessed output -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/23854] -no-pie -export-dynamic corrupts binary

2018-11-05 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=23854 --- Comment #7 from Stas Sergeev --- Created attachment 11379 --> https://sourceware.org/bugzilla/attachment.cgi?id=11379=edit verbose asm > Please provide pre-processed dpmi.c from gcc -E and command-line > options to generate dpmi.s

[Bug ld/23854] -no-pie -export-dynamic corrupts binary

2018-11-05 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=23854 --- Comment #9 from Stas Sergeev --- (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 -O -o dpmi.s dpmi.E gcc version 7.3.0 (Ubuntu

[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?

[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

[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 --- 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 binutils/23728] binutils fail on macOS 10.14 (Mojave) due to unimplemented LC_BUILD_VERSION Mach-O load command

2018-11-05 Thread roolebo at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23728 Roman Bolshakov changed: What|Removed |Added CC||roolebo at gmail dot com -- You

[Bug gas/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 Component|ld |gas -- You are receiving this mail

[Bug gas/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 #14 from Stas Sergeev --- > H.J. Lu changed: > >What|Removed |Added > > Component|ld

[Bug gas/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 #16 from Stas Sergeev --- > H.J. Lu changed: > Please try: > > https://sourceware.org/ml/binutils/2018-11/msg00021.html > > You need to compile with the new assembler. Building your git now... However. Are there really no hopes

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

2018-11-05 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23854 --- Comment #18 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a4749e56cacefdc1a571231744a9b87a3f5458b9 commit

[Bug gas/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 #19 from Stas Sergeev --- > H.J. Lu changed: > Your code doesn't conform to i386 psABI, which doesn't > support only using lower 16 bits of GOT entries. I would understand if linker writes me such an error. Silently producing

[Bug gas/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 #15 from H.J. Lu --- (In reply to Stas Sergeev from comment #14) > > H.J. Lu changed: > > > >What|Removed |Added > >

[Bug gas/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 #17 from H.J. Lu --- (In reply to Stas Sergeev from comment #16) > > H.J. Lu changed: > > Please try: > > > > https://sourceware.org/ml/binutils/2018-11/msg00021.html > > > > You need to compile with the new assembler. >

[Bug gas/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 #25 from Stas Sergeev --- > What your code did is outside of scope of i386 psABI. Why not linker tells me so with an error msg?(In reply to H.J. Lu from comment #24) > (In reply to Stas Sergeev from comment #23) > > > What your

[Bug gas/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 #26 from Stas Sergeev --- By the way, is it a feature of this bugzilla to open the entirely different bug ticket after I post any comment? This always makes me worry that I posted to wrong thread. For example, when I post to

[Bug gas/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 #23 from Stas Sergeev --- > What your code did is outside of scope of i386 psABI. Why not linker tells me so with an error msg? -- You are receiving this mail because: You are on the CC list for the bug.

[Bug gas/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 #21 from H.J. Lu --- (In reply to Stas Sergeev from comment #19) > > H.J. Lu changed: > > Your code doesn't conform to i386 psABI, which doesn't > > support only using lower 16 bits of GOT entries. > I would understand if linker

[Bug gas/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 #22 from H.J. Lu --- (In reply to Stas Sergeev from comment #20) > I disasmed and diffed the object files > without and with your patch. I see a lot of: > --- > 597,598c597,598 > < 745: 8d 74 26 00 lea

[Bug gas/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 #20 from Stas Sergeev --- I disasmed and diffed the object files without and with your patch. I see a lot of: --- 597,598c597,598 < 745: 8d 74 26 00 lea0x0(%esi,%eiz,1),%esi < 749: 8d bc 27 00 00

[Bug gas/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 #24 from H.J. Lu --- (In reply to Stas Sergeev from comment #23) > > What your code did is outside of scope of i386 psABI. > > Why not linker tells me so with an error msg? There are many corner cases linker doesn't check. You

[Bug binutils/23746] Debugging under x86_64-apple-darwin18.0.0 getting "not in executable format"

2018-11-05 Thread roolebo at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23746 Roman Bolshakov changed: What|Removed |Added CC||roolebo at gmail dot com ---

[Bug binutils/23863] New: binutils-2.31.1 stack buffer overflow in nm -C

2018-11-05 Thread mmmtoxic at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23863 Bug ID: 23863 Summary: binutils-2.31.1 stack buffer overflow in nm -C Product: binutils Version: 2.31 Status: UNCONFIRMED Severity: normal Priority: P2

[Bug binutils/23728] binutils fail on macOS 10.14 (Mojave) due to unimplemented LC_BUILD_VERSION Mach-O load command

2018-11-05 Thread roolebo at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23728 --- Comment #5 from Roman Bolshakov --- I'm wrapping up a patch series that adds full support for parsing and printing of LC_BUILD_VERSION. -- You are receiving this mail because: You are on the CC list for the bug.