REMOVE ME: turn off crti/crtn debug section
authorSlava Barinov <v.barinov@samsung.com>
Fri, 31 Jan 2020 06:54:10 +0000 (09:54 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Wed, 3 May 2023 10:48:13 +0000 (19:48 +0900)
Change-Id: Id3c7539d9cbc4316c496c091c56d4337c4d1027d
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/glibc.spec

index fd64f33..37ac125 100644 (file)
@@ -444,6 +444,17 @@ touch %{buildroot}%{_libdir}/gconv/gconv-modules.cache
 # Install base glibc
 make %{?_smp_mflags} install_root=%{buildroot} install -C cc-base
 
+#######################################################################
+###
+###     REMOVE ME #### REMOVE ME #### REMOVE ME #### REMOVE ME      ###
+###
+#######################################################################
+# Strip out debug sections from crti.o and crtn.o to compensate bug of
+# binutils < 2.31.2
+find %{buildroot} \( -name 'crti.o' -o -name 'crtn.o' \) -exec strip {} \;
+#######################################################################
+
+
 install_optimized_variant() {
        local dirname="$1"; shift
        local subdir="$1"; shift