bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/19011] Issues with ld on mingw-w64 and bad defaults


From: amodra at gmail dot com
Subject: [Bug ld/19011] Issues with ld on mingw-w64 and bad defaults
Date: Thu, 27 Aug 2020 23:57:26 +0000

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

--- Comment #20 from Alan Modra <amodra at gmail dot com> ---
>From ld.log before/after the patch it looks like all of the regressions on
x86_64-w64-mingw32 are due to additional "relocation truncated to fit" errors.

good:
./ld-new   -o tmpdir/pr20070.x 
-L/home/alan/src/binutils-gdb/ld/testsuite/ld-plugin -Bstatic -plugin
/home/alan/build/gas/x86_64-w64-mingw32/ld/.libs/libldtestplug4.so.0
-plugin-opt registerclaimfile  -plugin-opt registerallsymbolsread -plugin-opt
registercleanup  -plugin-opt
claim:/home/alan/src/binutils-gdb/ld/testsuite/ld-plugin/pr20070b.c 
-plugin-opt claim:tmpdir/libpr20070.a  -plugin-opt dumpresolutions 
tmpdir/pr20070a.o tmpdir/text.o tmpdir/libpr20070.a --defsym __stack_chk_fail=0
--defsym __main=0 --defsym ___main=0 --defsym printf=main --defsym puts=main
hook called: all symbols read.
Input: pr20070b.c (tmpdir/libpr20070.a)
Sym: 'def' Resolution: LDPR_PREVAILING_DEF_IRONLY
Sym: 'weakdef' Resolution: LDPR_PREVAILING_DEF_IRONLY
Sym: 'undef' Resolution: LDPR_UNDEF
Sym: 'weakundef' Resolution: LDPR_UNDEF
Sym: 'common' Resolution: LDPR_PREVAILING_DEF_IRONLY
hook called: cleanup.

bad:
./ld-new   -o tmpdir/pr20070.x 
-L/home/alan/src/binutils-gdb/ld/testsuite/ld-plugin -Bstatic -plugin
/home/alan/build/gas/x86_64-w64-mingw32/ld/.libs/libldtestplug4.so.0
-plugin-opt registerclaimfile  -plugin-opt registerallsymbolsread -plugin-opt
registercleanup  -plugin-opt
claim:/home/alan/src/binutils-gdb/ld/testsuite/ld-plugin/pr20070b.c 
-plugin-opt claim:tmpdir/libpr20070.a  -plugin-opt dumpresolutions 
tmpdir/pr20070a.o tmpdir/text.o tmpdir/libpr20070.a --defsym __stack_chk_fail=0
--defsym __main=0 --defsym ___main=0 --defsym printf=main --defsym puts=main
hook called: all symbols read.
Input: pr20070b.c (tmpdir/libpr20070.a)
Sym: 'def' Resolution: LDPR_PREVAILING_DEF_IRONLY
Sym: 'weakdef' Resolution: LDPR_PREVAILING_DEF_IRONLY
Sym: 'undef' Resolution: LDPR_UNDEF
Sym: 'weakundef' Resolution: LDPR_UNDEF
Sym: 'common' Resolution: LDPR_PREVAILING_DEF_IRONLY
tmpdir/pr20070a.o: in function `main':
/home/alan/src/binutils-gdb/ld/testsuite/ld-plugin/pr20070a.c:6:(.text.startup+0x5):
relocation truncated to fit: R_X86_64_PC32 against symbol `__main' defined in
*ABS* section in tmpdir/pr20070.x
hook called: cleanup.

Fixing these regressions can probably be done by passing
--disable-reloc-section on pe targets for these tests.

-- 
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]