Search Linux Wireless

Re: [PATCH v2] iw: set retain atrribute on sections

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

 



(removing stable@xxxxxxxxxxxxxxx from CC)

On Mon, Apr 26, 2021 at 9:30 AM Manoj Gupta <manojgupta@xxxxxxxxxx> wrote:
>
> LLD 13 and GNU ld 2.37 support -z start-stop-gc which allows garbage
> collection of C identifier name sections despite the __start_/__stop_
> references.  Simply set the retain attribute so that GCC 11 (if
> configure-time binutils is 2.36 or newer)/Clang 13 will set the
> SHF_GNU_RETAIN section attribute to prevent garbage collection.
>
> Without the patch, there are linker errors like the following with -z
> start-stop-gc:
> ld.lld: error: undefined symbol: __stop___cmd
> >>> referenced by iw.c:418
> >>>               iw.o:(__handle_cmd)
>
> Suggested-by: Fangrui Song <maskray@xxxxxxxxxx>
>
> Cc: stable@xxxxxxxxxxxxxxx
>
> Signed-off-by: Manoj Gupta <manojgupta@xxxxxxxxxx>

This is not a kernel patch and so should not be sent to the
linux-stable list. I think Greg KH's bot already told you as much on
earlier versions.

See:
https://git.kernel.org/pub/scm/linux/kernel/git/jberg/iw.git/tree/README

"Please send all patches to Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
and CC linux-wireless@xxxxxxxxxxxxxxx for community review."

You're ~close.

Brian



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux