Disable the image-prelink by default
cover Disable the image-prelink by default
Due to problems discovered inside of the prelinker, it is not safe to use at this time. Hopefully people will respond to my plea for help and we can get the prelinker re-enabled in the near future.
(All supported Yocto Project architectures are affected by problems.)
Note: the prelinker will still be built and components of it will be used by other pieces of the system. This usage is ok, as the prelink-rtld is functioning properly for the purposes of dependency discovery and other potential needs.
Mark Hatle (1):
local.conf.sample: Disable image-prelink by default
meta/conf/local.conf.sample | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
1.9.3
PATCH 1/1 local.conf.sample: Disable image-prelink by default
Due to problems with the prelinker itself, we need to disable the image-prelink by default. This will hopefully be re-enabled in the near future.
--- meta/conf/local.conf.sample | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/conf/local.conf.sample +3 -1
@@ -128,7 +128,9 @@ EXTRA_IMAGE_FEATURES = "debug-tweaks" # - 'image-swab' to perform host system intrusion detection # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended -USER_CLASSES ?= "buildstats image-mklibs image-prelink" +# NOTE: image-prelink is currently broken due to problems with the prelinker. It is advised +# that you do NOT run the prelinker at this time. +USER_CLASSES ?= "buildstats image-mklibs" #
Signature · 1 line
1.9.3
Re: [jethro/master][PATCH 1/1] local.conf.sample: Disable image-prelink by default
Quoted 3 lines · Mark Hatle
Due to problems with the prelinker itself, we need to disable the image-prelink by default. This will hopefully be re-enabled in the near future.
We had to disable it in our builds back in Dylan days.
Regards,
Quoted 28 lines
Signed-off-by Mark Hatle <[email protected]>--- meta/conf/local.conf.sample | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/conf/local.conf.sample +3
-1@@ -128,7 +128,9 @@ EXTRA_IMAGE_FEATURES = "debug-tweaks" # - 'image-swab' to perform host system intrusion detection # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended -USER_CLASSES ?= "buildstats image-mklibs image-prelink" +# NOTE: image-prelink is currently broken due to problems with the prelinker. It is advised +# that you do NOT run the prelinker at this time. +USER_CLASSES ?= "buildstats image-mklibs" #Signature · 7 lines
1.9.3 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [jethro/master][PATCH 1/1] local.conf.sample: Disable image-prelink by default
Quoted 8 lines · Martin Jansa
Quoted 3 lines · Mark Hatle
Due to problems with the prelinker itself, we need to disable the image-prelink by default. This will hopefully be re-enabled in the near future.
Acked-by Martin Jansa <[email protected]>We had to disable it in our builds back in Dylan days.
FYI this is working just fine in Dizzy. I've heard reports it works in Fido. This is the first that I know it's universally broken. (It's possible there were some issues in Fido, as I have not verified it either way.. but Dizzy definitely works and passes expected testings.)
--Mark
Quoted 31 lines
Regards,
Quoted 28 lines
Signed-off-by Mark Hatle <[email protected]>--- meta/conf/local.conf.sample | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/conf/local.conf.sample +3
-1@@ -128,7 +128,9 @@ EXTRA_IMAGE_FEATURES = "debug-tweaks" # - 'image-swab' to perform host system intrusion detection # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended -USER_CLASSES ?= "buildstats image-mklibs image-prelink" +# NOTE: image-prelink is currently broken due to problems with the prelinker. It is advised +# that you do NOT run the prelinker at this time. +USER_CLASSES ?= "buildstats image-mklibs" #Signature · 7 lines
1.9.3 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [jethro/master][PATCH 1/1] local.conf.sample: Disable image-prelink by default
Quoted 6 lines · Mark Hatle
Quoted 5 lines · Martin Jansa
Quoted 3 lines · Mark Hatle
Due to problems with the prelinker itself, we need to disable the image-prelink by default. This will hopefully be re-enabled in the near future.
Quoted 8 lines
Quoted 3 lines
Acked-by Martin Jansa <[email protected]>We had to disable it in our builds back in Dylan days.
FYI this is working just fine in Dizzy. I've heard reports it works in Fido. This is the first that I know it's universally broken. (It's possible there were some issues in Fido, as I have not verified it either way.. but Dizzy definitely works and passes expected testings.)
The main reason why we disabled it back then was that it was causing debug symbols in -dbg packages not matching the prelinked binary in the image
The size of dynamic relocation section(rel.dyn) was changed from 0027a0 to 003b70 by prelinking. Hence, the code section offset was also changed from 015550 to 016920.
So, we can not use the dwarf file (.debug/libc-2.14.1.so) made before prelinking.
The number of relocations was 1296 when i use prelinked libraries. This value was same on non-prelink. But the number of relative relocations has decreased from 2296 to 328.
Then we did some benchmarks on our target and they didn't show any significant difference with and without prelink, for 4 stages of our boot we got:
7.06 -> 7.08, 0.28%
5.63 -> 5.75, 2.09%
10.47 -> 10.53, 0.53%
26.11 -> 26.15, 0.15%
So we have disabled it and never looked back.
Regards,
Quoted 30 lines
Quoted 29 lines
Quoted 28 lines
Signed-off-by Mark Hatle <[email protected]>--- meta/conf/local.conf.sample | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/conf/local.conf.sample +3
-1@@ -128,7 +128,9 @@ EXTRA_IMAGE_FEATURES = "debug-tweaks" # - 'image-swab' to perform host system intrusion detection # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended -USER_CLASSES ?= "buildstats image-mklibs image-prelink" +# NOTE: image-prelink is currently broken due to problems with the prelinker. It is advised +# that you do NOT run the prelinker at this time. +USER_CLASSES ?= "buildstats image-mklibs" #Signature · 7 lines
1.9.3 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [jethro/master][PATCH 1/1] local.conf.sample: Disable image-prelink by default
Quoted 34 lines · Martin Jansa
Quoted 6 lines · Mark Hatle
Quoted 5 lines · Martin Jansa
Quoted 3 lines · Mark Hatle
Due to problems with the prelinker itself, we need to disable the image-prelink by default. This will hopefully be re-enabled in the near future.
Quoted 8 lines
Quoted 3 lines
Acked-by Martin Jansa <[email protected]>We had to disable it in our builds back in Dylan days.
FYI this is working just fine in Dizzy. I've heard reports it works in Fido. This is the first that I know it's universally broken. (It's possible there were some issues in Fido, as I have not verified it either way.. but Dizzy definitely works and passes expected testings.)
The main reason why we disabled it back then was that it was causing debug symbols in -dbg packages not matching the prelinked binary in the image
The size of dynamic relocation section(rel.dyn) was changed from 0027a0 to 003b70 by prelinking. Hence, the code section offset was also changed from 015550 to 016920.
So, we can not use the dwarf file (.debug/libc-2.14.1.so) made before prelinking.The number of relocations was 1296 when i use prelinked libraries. This value was same on non-prelink. But the number of relative relocations has decreased from 2296 to 328.
Then we did some benchmarks on our target and they didn't show any significant difference with and without prelink, for 4 stages of our boot we got:
Quoted 6 lines
7.06 -> 7.08, 0.28%
5.63 -> 5.75, 2.09%
10.47 -> 10.53, 0.53%
26.11 -> 26.15, 0.15%So we have disabled it and never looked back.
If I get things working again, I'll look into that. I suspect that was fixed shortly after, I remebmer there being some debug/dwarf patches going in around that time frame.
--Mark
Quoted 33 lines
Regards,
Quoted 30 lines
Quoted 29 lines
Quoted 28 lines
Signed-off-by Mark Hatle <[email protected]>--- meta/conf/local.conf.sample | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/conf/local.conf.sample +3
-1@@ -128,7 +128,9 @@ EXTRA_IMAGE_FEATURES = "debug-tweaks" # - 'image-swab' to perform host system intrusion detection # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended -USER_CLASSES ?= "buildstats image-mklibs image-prelink" +# NOTE: image-prelink is currently broken due to problems with the prelinker. It is advised +# that you do NOT run the prelinker at this time. +USER_CLASSES ?= "buildstats image-mklibs" #Signature · 7 lines
1.9.3 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [jethro/master][PATCH 1/1] local.conf.sample: Disable image-prelink by default
In reply to Mark HatleQuoted 17 lines · Mark Hatle
Due to problems with the prelinker itself, we need to disable the image-prelink by default. This will hopefully be re-enabled in the near future.
Signed-off-by Mark Hatle <[email protected]>---
meta/conf/local.conf.sample | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)meta/conf/local.conf.sample +0
-0
meta/conf/local.conf.sample EXTRA_IMAGE_FEATURES = "debug-tweaks" · line 133
Quoted 7 lines
meta/conf/local.conf.sample +3
-1@@ -128,7 +128,9 @@ EXTRA_IMAGE_FEATURES = "debug-tweaks" # - 'image-swab' to perform host system intrusion detection # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended -USER_CLASSES ?= "buildstats image-mklibs image-prelink" +# NOTE: image-prelink is currently broken due to problems with the prelinker. It is advised +# that you do NOT run the prelinker at this time. +USER_CLASSES ?= "buildstats image-mklibs”
this looks good
Quoted 11 lines
meta/conf/local.conf.sample +0
-1# --1.9.3
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core