freebsd-nq/usr.sbin/crunch/crunchgen
Fangrui Song ec81497cc7 crunchgen: remove -dc from linker invocation
In GNU ld and ld.lld, -dc is used with -r to allocate space to COMMON
symbols.  It is presumably to work around legacy code which cannot
handle COMMON symbols in relocatable output.  ld.lld may remove -dc or
make it a no-op for the 15.0.0 release.

As of 7420b323a0 crunch/crunchide does not require -dc, as the symbol
hiding technique no longer relied on making symbols local.

In addition -fno-common is now the default in Clang and GCC, so -dc
serves no purpose as the compiler does not generate COMMON symbols
anyway.

See https://maskray.me/blog/2022-02-06-all-about-common-symbols for more
detail on common symbols.

Reviewed by:	emaste
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D34215
2022-02-09 13:54:35 -05:00
..
crunched_main.c Lift scope of buf[] to make it extend to a potential access via *basename 2020-12-10 09:31:05 +00:00
crunchgen.1
crunchgen.c crunchgen: remove -dc from linker invocation 2022-02-09 13:54:35 -05:00
Makefile
Makefile.depend
mkskel.sh crunchgen: fix remaining issues under WARNS=6 2021-08-19 12:47:48 -05:00