mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
gcc/riscv: Align Haiku spec to gcc 11 design
Change-Id: I6f67c79ddefe85a7d1e8773e88f50cd3b70a4f80 Reviewed-on: https://review.haiku-os.org/c/buildtools/+/5444 Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
parent
57c9179de2
commit
934127e8f1
@ -41,7 +41,15 @@ along with GCC; see the file COPYING3. If not see
|
|||||||
"%{mabi=ilp32d:}" \
|
"%{mabi=ilp32d:}" \
|
||||||
"%{mabi=lp64:-sf}" \
|
"%{mabi=lp64:-sf}" \
|
||||||
"%{mabi=lp64f:-sp}" \
|
"%{mabi=lp64f:-sp}" \
|
||||||
|
"%{mabi=lp64d:}"
|
||||||
|
|
||||||
|
#define LD_EMUL_SUFFIX \
|
||||||
"%{mabi=lp64d:}" \
|
"%{mabi=lp64d:}" \
|
||||||
|
"%{mabi=lp64f:_lp64f}" \
|
||||||
|
"%{mabi=lp64:_lp64}" \
|
||||||
|
"%{mabi=ilp32d:}" \
|
||||||
|
"%{mabi=ilp32f:_ilp32f}" \
|
||||||
|
"%{mabi=ilp32:_ilp32}"
|
||||||
|
|
||||||
#undef LIB_SPEC
|
#undef LIB_SPEC
|
||||||
// Linux adds -latomic because RISC-V only has word-sized atomics
|
// Linux adds -latomic because RISC-V only has word-sized atomics
|
||||||
@ -54,4 +62,4 @@ along with GCC; see the file COPYING3. If not see
|
|||||||
#define ICACHE_FLUSH_FUNC "__riscv_flush_icache"
|
#define ICACHE_FLUSH_FUNC "__riscv_flush_icache"
|
||||||
|
|
||||||
#undef LINK_SPEC
|
#undef LINK_SPEC
|
||||||
#define LINK_SPEC "-melf" XLEN_SPEC "lriscv %{!r:-shared} %{nostart:-e 0} %{shared:-e 0} %{!shared: %{!nostart: -no-undefined}} -X"
|
#define LINK_SPEC "-melf" XLEN_SPEC DEFAULT_ENDIAN_SPEC "riscv" LD_EMUL_SUFFIX " %{!r:-shared} %{nostart:-e 0} %{shared:-e 0} %{!shared: %{!nostart: -no-undefined}} -X"
|
||||||
|
Loading…
Reference in New Issue
Block a user