https://sourceware.org/bugzilla/show_bug.cgi?id=28639
--- Comment #2 from Valerii Chernous <vchernou at cisco dot com> --- (In reply to H.J. Lu from comment #1) > Created attachment 13810 [details] > A patch > > Please try this. libc.so.6 for x86-64 platform have valid .note.gnu.build-id section size readelf -S ./image/usr/lib64/libc.so.6 | grep -E -A1 "note.gnu.bu" [ 1] .note.gnu.bu[...] NOTE 00000000000002e0 000002e0 0000000000000024 0000000000000000 A 0 0 4 test case that I provided: export CMD_PREFIX="./recipe-sysroot-native/usr/bin/x86_64-iosxe-linux/x86_64-iosxe-linux"; export GCC="$CMD_PREFIX-gcc"; export RELF="$CMD_PREFIX-readelf" echo "void f1(){}" >f1.c echo "void f2(){}" >f2.c $GCC f1.c -c -o f1.o $GCC f2.c -c -o f2.o $GCC f1.o -Wl,--build-id -nostdlib -nostartfiles -r -o f1 $GCC f2.o -Wl,--build-id -nostdlib -nostartfiles -r -o f2 $GCC ./f1 ./f2 -shared -Wl,--build-id -nostdlib -nostartfiles -o f.so $RELF -S f.so | grep -E -A1 "note.gnu.bu" [ 1] .note.gnu.bu[...] NOTE 0000000000000238 00000238 0000000000000024 0000000000000000 A 0 0 4 Also return valid section size I will inform you about result for all our testcases in couple of days Thanks a lot for patch -- You are receiving this mail because: You are on the CC list for the bug.