Comments (6)
72 is BFD_RELOC_NONE. Sounds like I messed something up : )
from riscv-binutils-gdb.
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.
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.
By master I meant HEAD
from riscv-binutils-gdb.
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.
I'm working on it now.
from riscv-binutils-gdb.
Related Issues (20)
- How gdb register csr HOT 2
- riscv64 gdb doesn't recognize riscv32 symbol tables: "Sorry, Dave" HOT 1
- GDB internal error HOT 1
- About the opcode constraints documentation. HOT 3
- What is the expected behavior upon hitting a EBREAK? HOT 3
- riscv-binutils-2.35-rvb: `_`instead of `.` ? HOT 2
- How to add a new custom instruction? HOT 6
- riscv-binutils-2.35-rvb: wrong match for xperm.h HOT 2
- a tricky one about gdb HOT 5
- Overlappings on the operand name for p ext
- Registers are interpreted as 64-bit when architecture is set to rv32 HOT 2
- ld: cannot find default versions of the ISA extension `i', when linking rv32e HOT 5
- GDB build fails on CentOS 7.9.2009 HOT 1
- Is there a way to let gdbserver instruct gdb client to use compressed breakpoints? HOT 2
- objdump cant correctly dissemble instructions that reuse other's encoding
- right way to compress branching instuction (decbnez from ZCE extension)
- Objdump and auipc: the immediate value should be displayed shifted HOT 2
- Does anyone know the status about zfh support of binutils? HOT 5
- GDB Single Step fails on RISCV, EL2 with ICCM HOT 1
- continue function not working??? HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riscv-binutils-gdb.