tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Trivial program size inflation



On Tue, 4 Jul 2023, Mouse wrote:

I've failed to find where the second -lgcc -lgcc_eh is specified,
though (I thought there may be explanatory comments); I searched
/usr/src for -lgcc_eh and found only three hits, none of which appear
to specify the duplication.  I may take a closer look sometime.


GCC used to rely on external .spec files a long time back, but, now
they're built-in (which you can override with with `-spec=' after
dumping with `-dumpspecs') using header files.

For NetBSD/x86 ELF:

/usr/src/external/gpl3/gcc/dist/gcc/config/netbsd-elf.h
/usr/src/external/gpl3/gcc/dist/gcc/config/netbsd.h
/usr/src/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h
/usr/src/external/gpl3/gcc/dist/gcc/config/i386/netbsd64.h

(I had to fiddle with them to get `-pg' working with shared
libs...)

-RVP



Home | Main Index | Thread Index | Old Index