[Bug ld/30922] gcc -pie generates unwanted PE export table

2024-01-07 Thread pali at kernel dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=30922

--- Comment #1 from Pali Rohár  ---
Just to note that Position Independet Executable and Export Table are two
totally different things. You can have (and it is pretty standard) to have
fixed-address executable without relocation table (so it always must be loaded
at specific virtual address) and this executable export some symbols/functions
to other later loaded DLL libraries. For example if application executable
support plugins and these plugins need to call application functions. It is
plugin DLL which must have relocation table for loading it at any address, but
for calling application executable function, there is absolutely no need to
have relocation table for application executable itself.

So it looks like that -pie option is duing two different and unrelated things:
generating relocation table and generating export table. And this should be
fixed.

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


[Bug binutils/31219] Incorrect disassembly for x86 ADCX instructions with -M suffix

2024-01-07 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=31219

--- Comment #1 from Sourceware Commits  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f322084c7c842fbfd8c3291ff3f8d114173b4674

commit f322084c7c842fbfd8c3291ff3f8d114173b4674
Author: H.J. Lu 
Date:   Sun Jan 7 11:58:53 2024 -0800

i386: Correct adcx suffix in disassembler

Since 0x66 is the opcode prefix for adcx, it is wrong to use the 'S'
prefix:

  'S' => print 'w', 'l' or 'q' if suffix_always is true

on adcx.  Add

  'L' => print 'l' or 'q' if suffix_always is true

replace S with L on adcx and adox.

gas/

PR binutils/31219
* testsuite/gas/i386/suffix.d: Updated.
* testsuite/gas/i386/x86-64-suffix.d: Likewise.
* testsuite/gas/i386/suffix.s: Add tests for adcx and adox.
* testsuite/gas/i386/x86-64-suffix.s: Likewise.

opcodes/

PR binutils/31219
* i386-dis.c: Add the 'L' suffix.
(prefix_table): Replace S with L on adcx and adox.
(putop): Handle the 'L' suffix.

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


[Bug binutils/31219] Incorrect disassembly for x86 ADCX instructions with -M suffix

2024-01-07 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31219

H.J. Lu  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|UNCONFIRMED |RESOLVED
   Target Milestone|--- |2.42

--- Comment #2 from H.J. Lu  ---
Fixed for 2.42.

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