Red Hat Bugzilla – Bug 1508954
Need to rebuild rpm in order to remove static relocations not known to older linkers
Last modified: 2018-04-10 06:02:27 EDT
Description of problem: The rebase of the binutils rpm in RHEL 7.5 has exposed a problem in that static i686 and x86_64 libraries and object files built with the rebased assembler now contain relocations that are not recognised by older linkers, including those shipped with RHEL 7.4 and earlier. The RHEL 7.5 assembler has now been patched to prevent the generation of these relocations, (which were only used to enable a link time optimization) but the following rpms still contain them and need to be rebuilt: binutils-devel-2.27-19.base.el7.i686.rpm binutils-devel-2.27-19.base.el7.x86_64.rpm Version-Release number of selected component (if applicable): 2.27-19 How reproducible: Always. Steps to Reproduce: 0. mkdir /dev/shm/delme; pushd /dev/shm/delme 1. rpm2cpio <suspect-rpm> | cpio -dim 2. find . -type f -exec readelf -r -W {} \; > relocs.out 3. grep -e GOTPCRELX -e GOT32X relocs.out Actual results: Relocs found. Expected results: No relocs found. Additional info: The fix to the assembler is covered by this BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1506004
Fixed in binutils-2.27-20.base.el7.
Verified with binutils-2.27-19.base.el7.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0686