Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么编译出能在玄铁C910处理器上能执行的gdb二进制呢? #4

Open
supercatking opened this issue Apr 28, 2024 · 0 comments

Comments

@supercatking
Copy link

我尝试下载了这个源代码,然后执行下面的命令进行编译,但是最终的到的./gdb/gdb程序是个X86_64上的gdb,不是我想要的在玄铁处理器上能跑的gdb。请问正确的操作时什么?
./configure --target=riscv --with-sysroot=/home/xxx/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1/sysroot
make

=======below is compiled gdb for your reference ========================
xxx@user-OptiPlex-5090:~/xuantie/binutils-gdb-xuantie-binutils-gdb-2.32$ file ./gdb/gdb
./gdb/gdb: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=e33b0fc807302620100a4e7a007b8f3d33e7f540, for GNU/Linux 3.2.0, with debug_info, not stripped

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant