]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: use local label prefixes for __reg_num symbols
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 15 Feb 2016 08:51:49 +0000 (09:51 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 16 Feb 2016 18:39:58 +0000 (18:39 +0000)
commit939a5eaaa9ec7c0bc843f2118c0899da79f406ff
treec90fc3b953e6c9993344ce6af2117822ca427e98
parent4247b66132f1b36439822a1b6b77b30a2deb9e21
arm64: use local label prefixes for __reg_num symbols

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@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/sysreg.h