[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/25264] New: RISC-V option norvc: linker complains "14 bytes req
From: |
scott.johnson at arilinc dot com |
Subject: |
[Bug gas/25264] New: RISC-V option norvc: linker complains "14 bytes required for alignment to 16-byte boundary, but only 12 present" |
Date: |
Tue, 10 Dec 2019 02:18:29 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25264
Bug ID: 25264
Summary: RISC-V option norvc: linker complains "14 bytes
required for alignment to 16-byte boundary, but only
12 present"
Product: binutils
Version: 2.34 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: scott.johnson at arilinc dot com
Target Milestone: ---
Created attachment 12115
--> https://sourceware.org/bugzilla/attachment.cgi?id=12115&action=edit
failing test case
When I switch back and forth between '.option rvc' and '.option norvc', the
alignment mechanism seems to break. When linking I get this failure:
riscv64-unknown-elf-ld: lotsaregs.o(.text+0x2): 14 bytes required for alignment
to 16-byte boundary, but only 12 present
riscv64-unknown-elf-ld: can't relax section: bad value
make: *** [lotsaregs.elf] Error 1
See attached testcase. This was run using binutils 2.33.50.20191209 (latest
master git bac7c5cf) but also seen in a months-old release. Built today using
crosstools-ng 1.24.0.
(The error message comes from ld but I suspect the problem originates in as, so
I'm filing this under as.)
In another instance (no testcase, sorry) a .balign 4 failed to achieve the
intended alignment, giving no error message but leaving the next instruction
only 2-byte aligned.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/25264] New: RISC-V option norvc: linker complains "14 bytes required for alignment to 16-byte boundary, but only 12 present",
scott.johnson at arilinc dot com <=