mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 07:20:11 +00:00
6b32696116
Code is mostly inspired from the LoongArch one, which has a similar ABI, with minor changes to support riscv32 and register differences. This fixes elf/tst-sprof-basic. This also fixes elf/tst-audit1, elf/tst-audit2 and elf/tst-audit8 with recent binutils snapshots when --enable-bind-now is used. Resolves: BZ #31151 Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
18 lines
378 B
Makefile
18 lines
378 B
Makefile
ifeq ($(subdir),misc)
|
|
sysdep_headers += sys/asm.h
|
|
endif
|
|
|
|
ifeq ($(subdir),elf)
|
|
gen-as-const-headers += dl-link.sym
|
|
endif
|
|
|
|
# RISC-V's assembler also needs to know about PIC as it changes the definition
|
|
# of some assembler macros.
|
|
ASFLAGS-.os += $(pic-ccflag)
|
|
|
|
ifeq (no,$(riscv-r-align))
|
|
ASFLAGS-.os += -Wa,-mno-relax
|
|
ASFLAGS-.o += -Wa,-mno-relax
|
|
sysdep-CFLAGS += -mno-relax
|
|
endif
|