3 # Check whether linker can handle cross-segment @segrel():
11 $CC -c $dir/check-segrel.S
-o $out.o
12 $LD -static -T$dir/check-segrel.lds
$out.o
-o $out
13 res
=$
($OBJDUMP --full --section .rodata
$out | fgrep
000 | cut
-f3 -d' ')
15 if [ $res != 00000a00
]; then
16 echo " -DHAVE_BUGGY_SEGREL"
18 warning: your linker cannot handle cross-segment segment-relative relocations.
19 please upgrade to a newer version (it is safe to use this linker, but
20 the kernel will be bigger than strictly necessary).