Code: Select all
x86_64-elf-gcc --sysroot=/TFOS/sysroot -isystem=/usr/include -T arch/x86_64/linker.ld -mno-red-zone -o tfos.elf -Ofast -g -ffreestanding -Wall -Wextra -Wpedantic -Werror -Wshadow -Wformat=2 -Wconversion -Wunused-parameter -fstack-protector-all -DCONFIG_KERN_VERSION_MAJOR=0 -DCONFIG_KERN_VERSION_MINOR=0 -DCONFIG_KERN_VERSION_PATCH=6 -DCONFIG_KERN_MAXARGS=65535 -DCONFIG_BITS=64 arch/x86_64/crti.o arch/x86_64/crtbegin.o arch/x86_64/boot.o arch/x86_64/pushpopregs.o arch/x86_64/cursor.o arch/x86_64/tty.o arch/x86_64/testing.o arch/x86_64/io/in.o arch/x86_64/io/out.o arch/x86_64/io/misc.o arch/x86_64/hardware/cpu/lidt.o arch/x86_64/hardware/pcspk/pcspeaker.o arch/x86_64/hardware/cpu/GDT.o arch/x86_64/hardware/pit/pit.o arch/x86_64/messages.o kernel/kernel.o kernel/stack.o kernel/panic.o kernel/bootDisplay.o arch/x86_64/crtend.o arch/x86_64/crtn.o -nostdlib -lk -lgcc
Code: Select all
arch/x86_64/crtbegin.o: in function `deregister_tm_clones':
crtstuff.c:(.text+0x1): relocation truncated to fit: R_X86_64_32 against symbol `__TMC_END__' defined in .eh_frame section in tfos.elf
crtstuff.c:(.text+0x18): relocation truncated to fit: R_X86_64_32 against `.tm_clone_table'
arch/x86_64/crtbegin.o: in function `register_tm_clones':
crtstuff.c:(.text+0x31): relocation truncated to fit: R_X86_64_32 against symbol `__TMC_END__' defined in .eh_frame section in tfos.elf
crtstuff.c:(.text+0x5a): relocation truncated to fit: R_X86_64_32 against `.tm_clone_table'
arch/x86_64/crtbegin.o: in function `__do_global_dtors_aux':
crtstuff.c:(.text+0x88): relocation truncated to fit: R_X86_64_32 against `.dtors'
crtstuff.c:(.text+0x8e): relocation truncated to fit: R_X86_64_32 against symbol `__DTOR_END__' defined in .dtors section in arch/x86_64/crtend.o
crtstuff.c:(.text+0xdb): relocation truncated to fit: R_X86_64_32 against `.eh_frame'
arch/x86_64/crtbegin.o: in function `frame_dummy':
crtstuff.c:(.text+0x10c): relocation truncated to fit: R_X86_64_32 against `.bss'
crtstuff.c:(.text+0x111): relocation truncated to fit: R_X86_64_32 against `.eh_frame'
kernel/kernel.o: in function `kernelMain':
/TFOS/kernel/kernel/kernel.c:33:(.text+0x84): relocation truncated to fit: R_X86_64_32 against `.rodata.str1.8'
/TFOS/kernel/kernel/kernel.c:37:(.text+0xad): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
Code: Select all
(prompt)$ sudo find / -name "crtstuff.c"
[sudo] password for techflash:
(prompt)$