Skip to content

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

Description

@supercatking

我尝试下载了这个源代码,然后执行下面的命令进行编译,但是最终的到的./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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions