[all-commits] [llvm/llvm-project] 4010dd: [MC, AArch64] Create mapping symbols with non-uniqu...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Jul 22 09:03:27 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4010ddf780d90c42877c9ab8d28b7e084cfe197e
      https://github.com/llvm/llvm-project/commit/4010ddf780d90c42877c9ab8d28b7e084cfe197e
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-07-22 (Mon, 22 Jul 2024)

  Changed paths:
    M lld/test/ELF/aarch64-cortex-a53-843419-abs-mapsyms.s
    M lld/test/ELF/aarch64-gnu-ifunc.s
    M lld/test/ELF/aarch64-reloc-pauth.s
    M lld/test/ELF/aarch64-thunk-script.s
    M lld/test/ELF/basic-aarch64.s
    M lld/test/ELF/pack-dyn-relocs.s
    M llvm/include/llvm/MC/MCContext.h
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
    M llvm/test/CodeGen/AArch64/callbr-asm-obj-file.ll
    M llvm/test/CodeGen/AArch64/inlineasm-ldr-pseudo.ll
    M llvm/test/DebugInfo/Symbolize/ELF/aarch64-mapping-symbol.s
    M llvm/test/MC/AArch64/CheckDataSymbol.s
    M llvm/test/MC/AArch64/mapping-across-sections.s
    M llvm/test/MC/AArch64/mapping-within-section.s
    M llvm/test/MC/AArch64/size-directive.s
    M llvm/test/MC/ELF/AArch64/cfi.s
    M llvm/test/tools/llvm-objdump/ELF/AArch64/elf-aarch64-mapping-symbols.test

  Log Message:
  -----------
  [MC,AArch64] Create mapping symbols with non-unique names

Add `createLocalSymbol` to create a local, non-temporary symbol.
Different from `createRenamableSymbol`, the `Used` bit is ignored,
therefore multiple local symbols might share the same name.

Utilizing `createLocalSymbol` in AArch64 allows for efficient mapping
symbol creation with non-unique names, saving .strtab space.
The behavior matches GNU assembler.

Pull Request: https://github.com/llvm/llvm-project/pull/99836



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list