Skip to contentSkip to conversation

New prelink version

DISCUSSION Mark Hatle 2 participants 4 messages Aug 18, 2016 – Aug 20, 2016

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

I have issued a new prelink release today.

git://git.yoctoproject.org/prelink-cross

master branch: target based prelink
new release tag: 20160818

cross_prelink branch: prelink w/ emulated 'rtld' (ld.so) new release tag: 20160818_cross

From the README file there are a few known issues:

* The --preload option does not always work. The preload1 test currently fails.

* quick2 test will fail if you do not have static libc installed.

* IFUNC on glibc. glibc appears to have a bug related to specific IFUNC ordering. build_local_scope in glibc is processing depth first instead of breadth-first processing as it should be. The prelink-rtld version works around this issue. (Prelink-rtld is only available in the cross compile version.) See: https://bugzilla.yoctoproject.org/show_bug.cgi?id=9131

* ARM & PPC: both are currently failing the reloc8 and reloc9 test Further investigation is in progress on these items. Until an explanation is found, you should hold off using this for ARM and PPC.

Changelog for the cross_prelink follows:

Common changes:

* Update configure.ac, libelf.m4 and */Makefile.am to avoid various auto* warnings
* Fixed a few compile warnings
* Add testcase for YP 9131 - IFUNC problem
* Fix LD_PRELOAD issues
* Fix section ordering problem (required for binutils-2.22)

Cross prelink specific changes:

* rtld: resync to glibc-2.23
* rtld: add additional debug scope support
* rtld: Add fix for YP 9131, IFUNC problem

author
#1 lore raw
Quoted 23 lines · Mark Hatle

I have issued a new prelink release today.

git://git.yoctoproject.org/prelink-cross

master branch: target based prelink
new release tag: 20160818

cross_prelink branch: prelink w/ emulated 'rtld' (ld.so) new release tag: 20160818_cross

From the README file there are a few known issues:

* The --preload option does not always work. The preload1 test currently fails.

* quick2 test will fail if you do not have static libc installed.

* IFUNC on glibc. glibc appears to have a bug related to specific IFUNC ordering. build_local_scope in glibc is processing depth first instead of breadth-first processing as it should be. The prelink-rtld version works around this issue. (Prelink-rtld is only available in the cross compile version.) See: https://bugzilla.yoctoproject.org/show_bug.cgi?id=9131

Quoted 3 lines

* ARM & PPC: both are currently failing the reloc8 and reloc9 test Further investigation is in progress on these items. Until an explanation is found, you should hold off using this for ARM and PPC.

It was determined the above items are related to a bug most likely in binutils. The components failed to execute even before they were prelinked. The prelinker is safe to use on ARM and PPC.

--Mark

Quoted 17 lines

Changelog for the cross_prelink follows:

Common changes:

* Update configure.ac, libelf.m4 and */Makefile.am to avoid various auto* warnings
* Fixed a few compile warnings
* Add testcase for YP 9131 - IFUNC problem
* Fix LD_PRELOAD issues
* Fix section ordering problem (required for binutils-2.22)

Cross prelink specific changes:

* rtld: resync to glibc-2.23
* rtld: add additional debug scope support
* rtld: Add fix for YP 9131, IFUNC problem

#2 lore raw
Quoted 27 lines · Mark Hatle
Quoted 23 lines · Mark Hatle

I have issued a new prelink release today.

git://git.yoctoproject.org/prelink-cross

master branch: target based prelink
new release tag: 20160818

cross_prelink branch: prelink w/ emulated 'rtld' (ld.so) new release tag: 20160818_cross

From the README file there are a few known issues:

* The --preload option does not always work. The preload1 test currently fails.

* quick2 test will fail if you do not have static libc installed.

* IFUNC on glibc. glibc appears to have a bug related to specific IFUNC ordering. build_local_scope in glibc is processing depth first instead of breadth-first processing as it should be. The prelink-rtld version works around this issue. (Prelink-rtld is only available in the cross compile version.) See: https://bugzilla.yoctoproject.org/show_bug.cgi?id=9131

Quoted 7 lines
Quoted 3 lines

* ARM & PPC: both are currently failing the reloc8 and reloc9 test Further investigation is in progress on these items. Until an explanation is found, you should hold off using this for ARM and PPC.

It was determined the above items are related to a bug most likely in binutils. The components failed to execute even before they were prelinked. The prelinker is safe to use on ARM and PPC.

Do you have failing samples that are due to ld issues ?

Quoted 26 lines

--Mark

Quoted 11 lines

Changelog for the cross_prelink follows:

Common changes:

* Update configure.ac, libelf.m4 and */Makefile.am to avoid various auto* warnings
* Fixed a few compile warnings
* Add testcase for YP 9131 - IFUNC problem
* Fix LD_PRELOAD issues
* Fix section ordering problem (required for binutils-2.22)

Quoted 6 lines

Cross prelink specific changes:

* rtld: resync to glibc-2.23
* rtld: add additional debug scope support
* rtld: Add fix for YP 9131, IFUNC problem

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

author
#3 lore raw
Quoted 31 lines · Khem Raj
Quoted 31 lines · Mark Hatle
Quoted 26 lines · Mark Hatle

I have issued a new prelink release today.

git://git.yoctoproject.org/prelink-cross

master branch: target based prelink
new release tag: 20160818

cross_prelink branch: prelink w/ emulated 'rtld' (ld.so) new release tag: 20160818_cross

From the README file there are a few known issues:

* The --preload option does not always work. The preload1 test currently fails.

* quick2 test will fail if you do not have static libc installed.

* IFUNC on glibc. glibc appears to have a bug related to specific IFUNC ordering. build_local_scope in glibc is processing depth first instead of breadth-first processing as it should be. The prelink-rtld version works around this issue. (Prelink-rtld is only available in the cross compile version.) See: https://bugzilla.yoctoproject.org/show_bug.cgi?id=9131

* ARM & PPC: both are currently failing the reloc8 and reloc9 test Further investigation is in progress on these items. Until an explanation is found, you should hold off using this for ARM and PPC.

Quoted 5 lines
Quoted 3 lines

It was determined the above items are related to a bug most likely in binutils. The components failed to execute even before they were prelinked. The prelinker is safe to use on ARM and PPC.

Do you have failing samples that are due to ld issues ?

YP Bug 10168 has the details.

Short answer, build a target system that can compile.. grab the prelink sources, and then 'make check'.

The reloc8.sh and reloc9.sh will fail. They both use "-Wl,-z,nocopyreloc" when linking.

They worked in 2.1 and 2.0, no longer works in 2.2 (master).

--Mark

Quoted 27 lines
Quoted 26 lines

--Mark

Quoted 11 lines

Changelog for the cross_prelink follows:

Common changes:

* Update configure.ac, libelf.m4 and */Makefile.am to avoid various auto* warnings
* Fixed a few compile warnings
* Add testcase for YP 9131 - IFUNC problem
* Fix LD_PRELOAD issues
* Fix section ordering problem (required for binutils-2.22)

Quoted 6 lines

Cross prelink specific changes:

* rtld: resync to glibc-2.23
* rtld: add additional debug scope support
* rtld: Add fix for YP 9131, IFUNC problem

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto