[Bug gas/22738] .dc.a directive has wrong size on SPARC 64-bit
https://sourceware.org/bugzilla/show_bug.cgi?id=22738 Jeremi changed: What|Removed |Added CC||jeremip11 at gmail dot com -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gas/22738] .dc.a directive has wrong size on SPARC 64-bit
https://sourceware.org/bugzilla/show_bug.cgi?id=22738 --- Comment #5 from cvs-commit at gcc dot gnu.org --- The binutils-2_30-branch branch has been updated by Eric Botcazou : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9224cc645045ee01787f05dd7d11c460b28b9966 commit 9224cc645045ee01787f05dd7d11c460b28b9966 Author: Eric Botcazou Date: Tue Jan 30 00:13:51 2018 +0100 Fix PR gas/22738 (.dc.a directive has wrong size on SPARC 64-bit). The .dc.a directive has wrong size (32 bits) on SPARC 64-bit because the assembler sets the correct BFD architecture only at the very end of the processing and it's too late for the directive. It's fixed by defining TARGET_MACH and making it return a sensible default value. gas/ * config/tc-sparc.h (sparc_mach): Declare. (TARGET_MACH): Define to above. * config/tc-sparc.c (sparc_mach): New function. (sparc_md_end): Minor tweak. ld/ * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gas/22738] .dc.a directive has wrong size on SPARC 64-bit
https://sourceware.org/bugzilla/show_bug.cgi?id=22738 Eric Botcazou changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED Target Milestone|--- |2.31 --- Comment #4 from Eric Botcazou --- Fixed on mainline. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gas/22738] .dc.a directive has wrong size on SPARC 64-bit
https://sourceware.org/bugzilla/show_bug.cgi?id=22738 --- Comment #3 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Eric Botcazou : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d85815e2d16f7c042d7912f1fa85bf1b9c28ca44 commit d85815e2d16f7c042d7912f1fa85bf1b9c28ca44 Author: Eric Botcazou Date: Tue Jan 30 00:13:51 2018 +0100 Fix PR gas/22738 (.dc.a directive has wrong size on SPARC 64-bit). The .dc.a directive has wrong size (32 bits) on SPARC 64-bit because the assembler sets the correct BFD architecture only at the very end of the processing and it's too late for the directive. It's fixed by defining TARGET_MACH and making it return a sensible default value. gas/ * config/tc-sparc.h (sparc_mach): Declare. (TARGET_MACH): Define to above. * config/tc-sparc.c (sparc_mach): New function. (sparc_md_end): Minor tweak. ld/ * testsuite/ld-elf/pr22450.d: Remove reference to SPARC64. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gas/22738] .dc.a directive has wrong size on SPARC 64-bit
https://sourceware.org/bugzilla/show_bug.cgi?id=22738 Eric Botcazou changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at sourceware dot org |ebotcazou at gcc dot gnu.org --- Comment #2 from Eric Botcazou --- Investigating. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gas/22738] .dc.a directive has wrong size on SPARC 64-bit
https://sourceware.org/bugzilla/show_bug.cgi?id=22738 Eric Botcazou changed: What|Removed |Added Target|sparc64-linux |sparc64-* CC||ebotcazou at gcc dot gnu.org Summary|sparc64-linux has 32-bit|.dc.a directive has wrong |address space |size on SPARC 64-bit --- Comment #1 from Eric Botcazou --- > So .dc.a is 4 bytes since sparc64-linux assembler defaults to 32-bit > processor: > > (gdb) p *stdoutput->arch_info > $2 = {bits_per_word = 32, bits_per_address = 32, bits_per_byte = 8, > arch = bfd_arch_sparc, mach = 1, arch_name = 0x4c58d4 "sparc", > printable_name = 0x4c58d4 "sparc", section_align_power = 3, the_default = > 1, > compatible = 0x433c50 , > scan = 0x433c80 , fill = 0x4340b0 > , > next = 0x5197a0 } > (gdb) > > There is a mismatch between ELF file class and target processor. That's not entirely true since sparc_md_end will set the correct architecture: (gdb) bt #0 bfd_default_set_arch_mach (abfd=0x769d20, arch=, mach=) at /home/eric/cvs/binutils-gdb/bfd/archures.c:976 #1 0x00428774 in sparc_md_end () at /home/eric/cvs/binutils-gdb/gas/config/tc-sparc.c:1187 #2 0x00403da6 in main (argc=2, argv=0x754350) at /home/eric/cvs/binutils-gdb/gas/as.c:1288 (gdb) p *stdoutput->arch_info $7 = {bits_per_word = 64, bits_per_address = 64, bits_per_byte = 8, arch = bfd_arch_sparc, mach = 7, arch_name = 0x514dd3 "sparc", printable_name = 0x519135 "sparc:v9", section_align_power = 3, the_default = 0, compatible = 0x433f90 , scan = 0x433b90 , fill = 0x433f60 , next = 0x519440 } but it's indeed too late for the .dc.a directive. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils