Bug 15083 - libgcc_s.so wrong file format
Summary: libgcc_s.so wrong file format
Status: RESOLVED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 3.1.24
Hardware: All Multiple
: Medium+ normal
Target Milestone: 3.1.25
Assignee: virendra
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2023-03-28 14:10 UTC by virendra
Modified: 2023-03-30 15:10 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description virendra 2023-03-28 14:10:30 UTC
It was detected a change on mainline builds when the switch to gcc 9.5 was made from 9.3 after recent upgrade in poky dunfell upgrade gcc to 9.5.

Previously libgcc_s.so was a symbolic link to libgcc_s.so.1, after the update to gcc 9.5 it stopped being a link and it is just a library file with no format.
 
libgcc1 -> Has the libgcc_s.so.1 file on both.
libgcc1-dev -> Has the symbolic link in gcc 9.3, but on gcc 9.5 it has a broken library.
Comment 1 Randy MacLeod 2023-03-30 14:41:47 UTC
Virendra,

Thanks for reporting the bug.
Please confirm that his is the dunfell branch. 
Can you explain when the update from 9.2 to 9.5 gcc was?

Can more provide more information about how to reproduce the bug?

Steve Sakoman may also take a look at this.
Comment 2 Ross Burton 2023-03-30 14:57:29 UTC
99% sure that this is the .so file changing from a symlink to a linker script, which is absolutely fine.
Comment 3 Ross Burton 2023-03-30 15:10:20 UTC
$ cat /yocto/ross/build-dunfell/tmp/work/core2-64-poky-linux/libgcc/9.5.0-r0/packages-split/libgcc-dev/lib/libgcc_s.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library.  */
GROUP ( libgcc_s.so.1 -lgcc )

That's not broken, that's a linker script. This is perfectly valid.