[PATCH v2] arm64: use local label prefixes for __reg_num symbols

Catalin Marinas catalin.marinas at arm.com
Tue Feb 16 10:40:58 PST 2016


On Mon, Feb 15, 2016 at 09:51:49AM +0100, Ard Biesheuvel wrote:
> The __reg_num_xNN symbols that are used to implement the msr_s and
> mrs_s macros are recorded in the ELF metadata of each object file.
> This does not affect the size of the final binary, but it does clutter
> the output of tools like readelf, i.e.,
> 
>   $ readelf -a vmlinux |grep -c __reg_num_x
>   50976
> 
> So let's use symbols with the .L prefix, these are strictly local,
> and don't end up in the object files.
> 
>   $ readelf -a vmlinux |grep -c __reg_num_x
>   0
> 
> Acked-by: Will Deacon <will.deacon at arm.com>
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>

Applied. Thanks.

-- 
Catalin



More information about the linux-arm-kernel mailing list