Re: [PATCH v4 1/4] eal: add macro to embed information in binaries

2025-06-04 Thread Andre Muezerie
On Wed, Jun 04, 2025 at 03:13:55PM +0100, Bruce Richardson wrote: > On Wed, Apr 16, 2025 at 02:44:55PM -0700, Andre Muezerie wrote: > > DPDK uses GCC attribute "used" through macro __rte_used to indicate > > that a variable not referenced in the code should be assumed being > > used and therefore n

Re: [PATCH v4 1/4] eal: add macro to embed information in binaries

2025-06-04 Thread Bruce Richardson
On Wed, Apr 16, 2025 at 02:44:55PM -0700, Andre Muezerie wrote: > DPDK uses GCC attribute "used" through macro __rte_used to indicate > that a variable not referenced in the code should be assumed being > used and therefore not be optimized away. This technique is used to embed > information in the

[PATCH v4 1/4] eal: add macro to embed information in binaries

2025-04-16 Thread Andre Muezerie
DPDK uses GCC attribute "used" through macro __rte_used to indicate that a variable not referenced in the code should be assumed being used and therefore not be optimized away. This technique is used to embed information in the binaries, by having crafted information stored in them. MSVC offers si