RE: [PATCH bpf v1 2/3] bpf: prevent .BTF section elimination

2020-09-21 Thread John Fastabend
Tony Ambardar wrote: > Systems with memory or disk constraints often reduce the kernel footprint > by configuring LD_DEAD_CODE_DATA_ELIMINATION. However, this can result in > removal of any BTF information. > > Use the KEEP() macro to preserve the BTF data as done with other important > sections,

[PATCH bpf v1 2/3] bpf: prevent .BTF section elimination

2020-09-19 Thread Tony Ambardar
Systems with memory or disk constraints often reduce the kernel footprint by configuring LD_DEAD_CODE_DATA_ELIMINATION. However, this can result in removal of any BTF information. Use the KEEP() macro to preserve the BTF data as done with other important sections, while still allowing for smaller