bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/28863] New: two-argument .align is accepted for RISC-V but the


From: jcmvbkbc at gcc dot gnu.org
Subject: [Bug gas/28863] New: two-argument .align is accepted for RISC-V but the alignment is not always preserved
Date: Fri, 04 Feb 2022 21:19:45 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28863

            Bug ID: 28863
           Summary: two-argument .align is accepted for RISC-V but the
                    alignment is not always preserved
           Product: binutils
           Version: 2.39 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: jcmvbkbc at gcc dot gnu.org
  Target Milestone: ---

Created attachment 13958
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13958&action=edit
align2.s

Building the attached program with the following commands results in
misalignment of the 'bar' label in the final executable:

riscv32-unknown-elf-as align2.s -o align2.o
riscv32-unknown-elf-ld align2.o -o align2
riscv32-unknown-elf-objdump -dr align2

align2:     file format elf32-littleriscv


Disassembly of section .text:

00010060 <_start>:
   10060:       00000013                nop
   10064:       00000013                nop
   10068:       00000013                nop
   1006c:       00000013                nop

00010070 <foo>:
   10070:       00000013                nop
        ...

0001007c <bar>:
   1007c:       00000013                nop
        ...

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]