Bug 22661 - MIPS_RLD_MAP_REL relative offset value incorrect after remove RPATH
Summary: MIPS_RLD_MAP_REL relative offset value incorrect after remove RPATH
Status: UNCONFIRMED
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.26
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-02 11:58 UTC by ada liu
Modified: 2018-01-02 12:32 UTC (History)
3 users (show)

See Also:
Host:
Target: mipsel
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ada liu 2018-01-02 11:58:20 UTC
Because mips binutils 2.26+  supportted MIPS_RLD_MAP_REL, which d_val was relative offset .So when use cmake (or chrpath, or meson) tools to remove rpath, got incorrect relative offset (https://wiki.debian.org/MIPSPort#Generic_issues)

Athough cmake 3.9+ has fixed this bug   (https://gitlab.kitware.com/jcowgill/cmake/commit/cd4f573ae9f4ded1cb386698f90c7ccf1504f094)
But most host (until ubuntu 17.01) still pre-installed cmake 3.5 version . So many package affected on mips.

Is it possible to move MIPS_RLD_MAP_REL entry above first RPATH to resolve this  problem ?