Giter Club home page Giter Club logo

Comments (6)

aswaterman avatar aswaterman commented on July 25, 2024

72 is BFD_RELOC_NONE. Sounds like I messed something up : )

from riscv-binutils-gdb.

palmer-dabbelt avatar palmer-dabbelt commented on July 25, 2024

I had this and fixed it by getting the right versions of all the tools.
riscv-gnu-toolchain is a bit behind because of all the upstream stuff in
flight, but I think if you bump binutils and gcc (and then drop GDB) it
should all build. IIRC this is the result of shuffling around the
relocations so .option worked.

On Nov 11, 2016 6:29 PM, "Andrew Waterman" [email protected] wrote:

72 is BFD_RELOC_NONE. Sounds like I messed something up : )


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#30 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABUaXkOYVS6Xl3BXti7E2DIES7Ec2Qc3ks5q9SSDgaJpZM4KuZYH
.

from riscv-binutils-gdb.

aswaterman avatar aswaterman commented on July 25, 2024

I'm on master-everything, so I think it's a real bug. This one's probably an easy fix, at least (the last one took me 12 hours to make a 3-line fix :-/)

from riscv-binutils-gdb.

aswaterman avatar aswaterman commented on July 25, 2024

By master I meant HEAD

from riscv-binutils-gdb.

kito-cheng avatar kito-cheng commented on July 25, 2024

Any idea?

(gdb) b tc-riscv.c:1629
Breakpoint 2 at 0x550fa6: file /home/kito/riscv-workspace/riscv-gnu-toolchain/riscv-binutils-gdb/gas/config/tc-riscv.c, line 1629.
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/kito/riscv-workspace/riscv-gnu-toolchain/install/bin/riscv64-unknown-linux-gnu-as test.s
warning: the debug information found in "/lib64/ld-2.23.so" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Breakpoint 2, riscv_ip (str=0x6310000009e0 "add", ip=0x7fffffffe4e0, imm_expr=0x7fffffffe4a0, imm_reloc=0x7fffffffe460)
    at /home/kito/riscv-workspace/riscv-gnu-toolchain/riscv-binutils-gdb/gas/config/tc-riscv.c:1629
1629              p = riscv_opts.relax ? percent_op_rtype_relax : percent_op_rtype;
(gdb) p riscv_opts.relax
$10 = 0
(gdb) p percent_op_rtype_relax
$11 = {{str = 0x769500 "%tprel_add", reloc = BFD_RELOC_RISCV_TPREL_ADD}, {str = 0x0, reloc = _dummy_first_bfd_reloc_code_real}}
(gdb) p percent_op_rtype
$12 = {{str = 0x769500 "%tprel_add", reloc = BFD_RELOC_NONE}, {str = 0x0, reloc = _dummy_first_bfd_reloc_code_real}}
(gdb) 

from riscv-binutils-gdb.

aswaterman avatar aswaterman commented on July 25, 2024

I'm working on it now.

from riscv-binutils-gdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.