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