[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/30259] RISC-V: Assertion failed when trying to link from "code"
From: |
nelsonc1225 at sourceware dot org |
Subject: |
[Bug ld/30259] RISC-V: Assertion failed when trying to link from "code" section |
Date: |
Tue, 28 Mar 2023 07:32:29 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30259
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> ---
A quick look, but not in details, the problem caused by that the .section code
must add at least "a" alloca attribute. Otherwise, ld even not go into
check_reloc, so that we won't do any GOT stuffs for R_RISCV_HI20, but will try
to use it in relocate_section. This may also be one of the cases that show the
non-matching between check_reloc and relocate_section.
--
You are receiving this mail because:
You are on the CC list for the bug.