Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 648758

Summary: <sys-devel/binutils-2.30-r2 lost TEXTREL warning on non-shared objects
Product: Gentoo Linux Reporter: Sergei Trofimovich (RETIRED) <slyfox>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: vapier
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sourceware.org/PR22909
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 655574    
Bug Blocks:    
Attachments: binutils-2.30-restore-TEXTREL-warnings.patch

Description Sergei Trofimovich (RETIRED) gentoo-dev 2018-02-25 11:54:59 UTC
Noticed it when was debugging bug #566118. gcc is unconditionally built with -fno-PIE -no-pie which means we lose TEXTREL warning.

Last full patch:
    https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/binutils/2.25.1/66_all_binutils-2.22.52.0.1-warn-textrel.patch?revision=1.1&view=markup

First partial patch:
    https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/binutils/2.26.1/00_all_0004-ld-always-warn-about-textrels-in-files.patch?view=markup

Note how it used to report warning for both shared objects and executables.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-02-28 23:40:57 UTC
Created attachment 521522 [details, diff]
binutils-2.30-restore-TEXTREL-warnings.patch
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2018-03-01 20:50:35 UTC
Added to gentoo/binutils-2.29.1, gentoo/binutils-2.30, and gentoo/binutils-9999 branch
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2018-03-01 22:14:07 UTC
Filed upstream bug to upstream our extension: https://sourceware.org/PR22909