https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119396

            Bug ID: 119396
           Summary: libgcc: Shared objects are being built for target that
                    doesn't support shared libs
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---

On avr, there are libgcc modules build with -DSHARED even though that target
doesn't support shared libraries.  For example, in $builddir/avr/avr5/libgcc
there are modules:

_adddi3_s.o
_adddi3_s8_s.o
_addmask_2_s.o
_addmask_4_s.o
_ashldi3_s.o
_ashrdi3_s.o
_bswapdi2_s.o
_bswapsi2_s.o
_cleanup_s.o
_clear_bss_s.o
_clr_8_s.o
_clzdi2_s.o
_clzhi2_s.o
_clzsi2_s.o
_cmpdi2_s.o
_cmpdi2_s8_s.o
_copy_data_s.o
_ctors_s.o
_ctzhi2_s.o
_ctzsi2_s.o
_divdi3_s.o
...

As it seems, these are objects listed in t-avr's LIB1ASMFUNCS which is added to
libgcc-s-objects even when enable_shared=no.

Reply via email to