bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/28875] ld should warn or error out about creating copy relocs &


From: thiago at kde dot org
Subject: [Bug ld/28875] ld should warn or error out about creating copy relocs & direct external references for protected symbols
Date: Fri, 11 Feb 2022 16:44:33 +0000

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

--- Comment #5 from Thiago Macieira <thiago at kde dot org> ---
(In reply to H.J. Lu from comment #4)
> Created attachment 13971 [details]
> The v2 patch
> 
> I got
> 
> /usr/gcc-12.0.1-x32/bin/gcc -B./ -o x main.o libfoo.so -Wl,-R,.
> ./ld: main.o: non-canonical reference to canonical protected function
> `internal_f' in libfoo.so
> ./ld: failed to set dynamic section sizes: bad value
> collect2: error: ld returned 1 exit status

Confirmed:

$ gcc main.cpp libb.so               
/home/tjmaciei/dev/gcc/lib/gcc/x86_64-pc-linux-gnu/12.0.1/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/ccTtYFXS.o: non-canonical reference to canonical protected function
`_Z10internal_fv' in libb.so
collect2: error: ld returned 1 exit status

Uploading my Qt patch to make use of this.

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