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

            Bug ID: 24129
           Summary: [RISCV] .align with fill only partially fills
           Product: binutils
           Version: 2.33 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: asb at lowrisc dot org
  Target Milestone: ---

$ ./riscv32-unknown-elf-as --version | head -n 1
GNU assembler (GNU Binutils) 2.32.51.20190124

$ cat t.s 
slli s1, s1, 0x14
.align 3, 2
slli s1, s1, 0x14

.section data
.word 1234
.align 3, 2
.word 1234

$ ./riscv32-unknown-elf-as -march=rv32imc -mno-arch-attr -mno-relax t.s 
$ ./riscv32-unknown-elf-objdump -Dr a.out 

a.out:     file format elf32-littleriscv


Disassembly of section .text:

00000000 <.text>:
   0:   04d2                    slli    s1,s1,0x14
   2:   0202                    c.slli64        tp
   4:   0202                    c.slli64        tp
   6:   0202                    c.slli64        tp
   8:   04d2                    slli    s1,s1,0x14
   a:   0001                    nop
   c:   00000013                nop

Disassembly of section data:

00000000 <data>:
   0:   04d2                    slli    s1,s1,0x14
   2:   0000                    unimp
   4:   0202                    c.slli64        tp
   6:   0202                    c.slli64        tp
   8:   04d2                    slli    s1,s1,0x14
        ...

As you can see, the fill in the data section is incomplete (should be 0x02
throughout the padding). This issue occurs regardless regardless of whether
relaxation is enabled/disabled.

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

Reply via email to