bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/25258] New: RISC-V: relocation truncated to fit: R_RISCV_GPREL_I


From: mhorne at freebsd dot org
Subject: [Bug ld/25258] New: RISC-V: relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR2'
Date: Sun, 08 Dec 2019 23:56:42 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=25258

            Bug ID: 25258
           Summary: RISC-V: relocation truncated to fit: R_RISCV_GPREL_I
                    against `.LANCHOR2'
           Product: binutils
           Version: 2.33
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: mhorne at freebsd dot org
  Target Milestone: ---

We have encountered an error when building FreeBSD with the latest binutils
release. I did a bisection and it appears to be a regression caused by the
commit: 
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=04b865dc2ede2b8ca8c60f0487a179eb97895fee

Here's the relevant snippet from the build log:

/usr/local/bin/riscv64-unknown-freebsd13.0-gcc
--sysroot=/usr/home/mitchell/riscv/obj/usr/home/mitchell/freebsd/riscv.riscv64/tmp
-B/usr/local/riscv64-unknown-freebsd13.0/bin/ -O2 -pipe -march=rv64imafdc
-mabi=lp64d -I. -I/usr/home/mitchell/freebsd/usr.sbin/jail -DINET6 -DINET -g
-std=gnu99 -Wno-format-zero-length -fstack-protector-strong -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings
-Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline
-Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign
-Wno-error=address -Wno-error=array-bounds -Wno-error=attributes
-Wno-error=bool-compare -Wno-error=cast-align -Wno-error=clobbered
-Wno-error=deprecated-declarations -Wno-error=enum-compare -Wno-error=extra
-Wno-error=inline -Wno-error=logical-not-parentheses -Wno-error=strict-aliasing
-Wno-error=uninitialized -Wno-error=unused-but-set-variable
-Wno-error=unused-function -Wno-error=unused-value
-Wno-error=misleading-indentation -Wno-error=nonnull-compare
-Wno-error=shift-negative-value -Wno-error=tautological-compare
-Wno-error=unused-const-variable -Wno-error=bool-operation
-Wno-error=deprecated -Wno-error=expansion-to-defined
-Wno-error=format-overflow -Wno-error=format-truncation
-Wno-error=implicit-fallthrough -Wno-error=int-in-bool-context
-Wno-error=memset-elt-size -Wno-error=noexcept-type -Wno-error=nonnull
-Wno-error=pointer-compare -Wno-error=stringop-overflow
-Wno-error=aggressive-loop-optimizations -Wno-error=cast-function-type
-Wno-error=catch-value -Wno-error=multistatement-macros -Wno-error=restrict
-Wno-error=sizeof-pointer-memaccess -Wno-error=stringop-truncation    -o
jail.full jail.o command.o config.o state.o jaillex.o jailparse.o   -ljail 
-lkvm  -lutil 
jailparse.o: in function `yyparse':
/usr/home/mitchell/freebsd/usr.sbin/jail/jailparse.y:75:(.text+0xfe):
relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR2'
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]