[all-commits] [llvm/llvm-project] 4e907e: [ELF] -M/-Map: fix VMA/LMA/Size columns of symbol ...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Apr 7 10:15:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e907e93fb42eff4ffc9a93026d1665de503acc9
      https://github.com/llvm/llvm-project/commit/4e907e93fb42eff4ffc9a93026d1665de503acc9
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M lld/ELF/LinkerScript.h
    A lld/test/ELF/map-file-64bit.s

  Log Message:
  -----------
  [ELF] -M/-Map: fix VMA/LMA/Size columns of symbol assignments when address/size>=2**32

SymbolAssignment::addr stores the location counter. The type should be
uint64_t instead of unsigned. The upper half of the address space is
commonly used by operating system kernels.

Similarly, SymbolAssignment::size should be an uint64_t. A kernel linker
script can move the location counter from 0 to the upper half of the
address space.

Reviewed By: grimar

Differential Revision: https://reviews.llvm.org/D77445




More information about the All-commits mailing list