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)
committerAlex Shi <alex.shi@linaro.org>
Wed, 11 May 2016 14:19:22 +0000 (22:19 +0800)
commit866817f9f155879d1d28f0944958a542bb70475c
tree3fc6a1d51d36e3e8ad934c6aa761d342fede7a99
parent391a428880ad64f0ab9dcf48f4666ba2a6aa7e76
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>
(cherry picked from commit 7abc7d833c9eb16efc8a59239d3771a6e30be367)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/include/asm/sysreg.h