Skip to content
New issue

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

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

Already on GitHub? # to your account

relocation truncated to fit: R_RISCV_GPREL_I against symbol `__stack_start' defined in .stack section in build/firmware.elf #17

Open
T-K-233 opened this issue Nov 19, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@T-K-233
Copy link
Member

T-K-233 commented Nov 19, 2023

/home/tk/Desktop/chipyard/.conda-env/riscv-tools/bin/../lib/gcc/riscv64-unknown-elf/12.2.0/../../../../riscv64-unknown-elf/bin/ld: warning: build/firmware.elf has a LOAD segment with RWX permissions
build/bsp/robo23/startup/startup.o: in function `.L0 ':
/mnt/c/Users/tk/Desktop/Baremetal-IDE/bsp/robo23/startup/startup.S:210:(.text.init+0xe4): relocation truncated to fit: R_RISCV_GPREL_I against symbol `__stack_start' defined in .stack section in build/firmware.elf
collect2: error: ld returned 1 exit status
make: *** [Makefile:157: build/firmware.elf] Error 1
> riscv64-unknown-elf-gcc --version
riscv64-unknown-elf-gcc (g2ee5e430018) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

> riscv64-unknown-elf-ld --version
GNU ld (GNU Binutils) 2.39
Copyright (C) 2022 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
@T-K-233 T-K-233 added the bug Something isn't working label Nov 19, 2023
@T-K-233 T-K-233 self-assigned this Nov 19, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant