Re: libc: Wrap __warn_references occurences in #if defined(APIWARN)

2021-10-24 Thread Theo de Raadt
But why? So I thought APIWARN was to be naunced, so that there are two kinds: API we always bitch about, and ones we only bitch about if APIWARN is set (which allows a linker later on to decide if it wants to honour the .section) But you are throwing them all behind the #ifdef, which means the

libc: Wrap __warn_references occurences in #if defined(APIWARN)

2021-10-24 Thread Frederic Cambus
Hi tech@, Most (but not all) __warn_references occurences in libc are wrapped in #if defined(APIWARN) blocks. This diff wraps the remaining occurences, so building libc without the APIWARN definition does not produce any strain .gnu.warning.* sections. Comments? OK? Index: