[PATCH v2 2/4] elf: Introduce _dl_map_segment_align hook for segment alignment tuning
Florian Weimer
fweimer@redhat.com
Thu Feb 26 11:55:24 GMT 2026
* WANG Rui:
> diff --git a/sysdeps/generic/dl-map-segment-align.h b/sysdeps/generic/dl-map-segment-align.h
> new file mode 100644
> index 0000000000..5bc2f21288
> --- /dev/null
> +++ b/sysdeps/generic/dl-map-segment-align.h
> +static __always_inline ElfW(Addr)
> +_dl_map_segment_align (const struct loadcmd *c, ElfW(Addr) p_align_max)
> +{
> + return p_align_max;
> +}
I'd use static inline here, no need to force __always_inline.
Thanks,
Florian
More information about the Libc-alpha
mailing list