From 280065cf68f148a32a8299a5b04946c944568bee Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Fri, 2 Apr 2021 08:24:22 -0700 Subject: libgloss: Fix crt*.o files that are stripped, when they shouldn't be Issue: CR-1062133 For some reason libgloss installs the crt*.o files with executable bit set, this causes the build system to strip these as executables. However, it makes it impossible to use the .o files to properly link applications later on. Signed-off-by: Mark Hatle --- meta-microblaze/recipes-core/newlib/libgloss_3.3.%.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta-microblaze/recipes-core/newlib/libgloss_3.3.%.bbappend b/meta-microblaze/recipes-core/newlib/libgloss_3.3.%.bbappend index 3dee0f06..e7f0a9a3 100644 --- a/meta-microblaze/recipes-core/newlib/libgloss_3.3.%.bbappend +++ b/meta-microblaze/recipes-core/newlib/libgloss_3.3.%.bbappend @@ -4,3 +4,10 @@ do_configure_prepend_microblaze() { # hack for microblaze, which needs xilinx.ld to literally do any linking (its hard coded in its LINK_SPEC) export CC="${CC} -L${S}/libgloss/microblaze" } + +# Libgloss provides various .o files in libdir +# These must NOT be stripped, but for some reason they are installed +x +# which triggers them to be stripped. +do_install_append_microblaze() { + chmod 0644 ${D}${libdir}/*.o +} -- cgit v1.2.3-54-g00ecf