[Buildroot] [PATCH v7 1/9] package/patchelf: add patch for rpath sanitization under a root directory

Arnout Vandecappelle arnout at mind.be
Wed Jul 19 23:17:31 UTC 2017



On 05-07-17 18:53, Wolfgang Grandegger wrote:
> The patch allows to use patchelf to sanitize the rpath of the buildroot
> libraries and binaries using the option "--make-rpath-relative <rootdir>".
> Recent versions of patchelf will not built on old Debian and RHEL systems
> due to C++11 constructs. Therefore we stick with v0.9 for the time being.

 One more thing (but that can be a completely separate follow-up patch).

 Currently, in most cases, we clear the rpath completely. But patchelf also has
functionality to remove the RUNPATH entry in the dynamic section. Although this
doesn't really make the file smaller (the space for the original string is kept,
the old string is just overwritten with X's), removing the RUNPATH entry could
speed up dynamic loading slightly. It's also just weird to see these empty
RUNPATH strings when you do a readelf.

 The code to do that is already there, in the rpRemove section. It's pretty
simple to factor it out.

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF


More information about the buildroot mailing list