1.在内核目录arch/x86/vdso/Makefile中,大约在28,29行 找到 VDSO_LDFLAGS_vdso.lds = -m elf_x86_64 -Wl,-soname=linux-vdso.so.1 \ -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096 把"-m elf_x86_64" 替换为 "-m64" 2然后再继续找,大约在72行左右,找到VDSO_LDFLAGS_vdso32.lds...
原来的命令是i386-elf-gcc -ffreestanding -m32 -g "kernel.cpp" -o "kernel.o"我需要添加-nostdli...
i386-elf-binutils 2.42 (nativeos/i386-elf-toolchain/i386-elf-binutils) 2.36.1 (nativeos/i386-elf-toolchain/i386-elf-binutils@2.36.1) i386-elf-gcc 14.1.0 (nativeos/i386-elf-toolchain/i386-elf-gcc) 11.2.0 (nativeos/i386-elf-toolchain/i386-elf-gcc@11.2). ...
export LD=/usr/local/bin/gcc-4.9 我们需要编译binutils 与 cross-compiled gcc,而后我们将他们放在/usr/local/i386elfgcc,现在让我们export几个路径,当然你可以按照需求改变它们。 export PREFIX="/usr/local/i386elfgcc" export TARGET=i386-elf export PATH="$PREFIX/bin:$PATH" binutils 记住,从网上粘贴命令...
i386-jos-elf-gdb.rb Update i386-jos-elf-gdb.rb (#3) Sep 24, 2020 Repository files navigation README i386-jos-elf-gcc brew tap liudangyi/i386-jos-elf-gcc brew install i386-jos-elf-gcc i386-jos-elf-gdb Packages No packages published ...
最终命令:i386-elf-gcc -nostdlib -ffreestanding -m32 -g "kernel.cpp" -o "kernel.o"
#Compile GCC 9.2.0, Binutils 2.34 and GDB 9.1docker run -it -v"/home/admin:/root"--rm lordmilko/i686-elf-tools -gv 9.2.0 -bv 2.34 -dv 9.1 Native Install a Debian based operating system, ideally 32-bit (i386). This procedure has successfully been performed on Debian 9.5 i386 and ...
liudangyi / homebrew-i386-jos-elf-gcc Public Notifications Fork 12 Star 38 Code Issues 2 Pull requests Actions Projects Wiki Security Insights New issue 安装时报错 #4 Open SoraNimi opened this issue Sep 24, 2020· 1 comment ...
brew tap lucianmocan/homebrew-i386-elf-toolchain brew install lucianmocan/i386-elf-toolchain/i386-elf-binutils lucianmocan/i386-elf-toolchain/i386-elf-gcc brew install qemu Go in the xv6-public directory. Open the Makefile and uncomment TOOLPREFIX after the comment Cross-compiling (e.g., on...