Skip to content

Commit da58264

Browse files
committed
tests2: keep linker boundary fixtures common
Compile _etext and _edata with -fcommon so RISC-V GCC does not place them in .sbss. This preserves the intended common/BSS replacement coverage. Fixes the reported test-riscv64-linux failure: https://github.com/TinyCC/tinycc/actions/runs/30347315549/job/90236450313
1 parent 3805977 commit da58264

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/tests2/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ endif
165165
# Boundary symbols must cover separately named sections from external objects.
166166
150_linker_boundaries.test: NORUN = true
167167
150_linker_boundaries.test: T1 = ( \
168-
$(CC) -fno-pic -fno-pie -c $(subst 150,150+,$1) \
168+
$(CC) -fcommon -fno-pic -fno-pie -c $(subst 150,150+,$1) \
169169
-o 150_linker_boundaries.o && \
170170
$(TCC) $1 150_linker_boundaries.o -o $(basename $@).exe && \
171171
./$(basename $@).exe \

0 commit comments

Comments
 (0)