https://sourceware.org/bugzilla/show_bug.cgi?id=28863
Nelson Chu <nelsonc1225 at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nelsonc1225 at sourceware dot
org
--- Comment #1 from Nelson Chu <nelsonc1225 at sourceware dot org> ---
Seems like the second argument of .aign cannot work unless -mno-relax is used,
so we need to fix this as it should be a bug.
% cat tmp.s
.text
.globl _start
_start:
add a0, a0, a0
add a0, a0, a0
.align 4
foo:
add a0, a0, a0
.align 4, 1
bar:
add a0, a0, a0
% riscv64-unknown-elf-as tmp.s -o tmp.o
% riscv64-unknown-elf-objdump -d tmp.o
tmp.o: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <_start>:
0: 00a50533 add a0,a0,a0
4: 00a50533 add a0,a0,a0
8: 00000013 nop
c: 00000013 nop
10: 00000013 nop --> correct, add 2^4 - 4 (norvc) nops
0000000000000014 <foo>:
14: 00a50533 add a0,a0,a0
18: 01010101 .word 0x01010101
1c: 01010101 .word 0x01010101 --> looks like we just
align it
without consider the ld
relax
0000000000000020 <bar>:
20: 00a50533 add a0,a0,a0
...
--
You are receiving this mail because:
You are on the CC list for the bug.