[all-commits] [llvm/llvm-project] bb4a36: [ELF] Propagate LMA offset to sections with neithe...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Apr 1 08:19:16 PDT 2020


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

  Changed paths:
    M lld/ELF/LinkerScript.cpp
    M lld/docs/ELF/linker_script.rst
    R lld/test/ELF/linkerscript/at4.s
    A lld/test/ELF/linkerscript/lma-offset.s
    M lld/test/ELF/linkerscript/loadaddr.s
    M lld/test/ELF/linkerscript/map-file2.test
    M lld/test/ELF/linkerscript/overlay.test

  Log Message:
  -----------
  [ELF] Propagate LMA offset to sections with neither AT() nor AT>

Fixes https://bugs.llvm.org/show_bug.cgi?id=45313
Also fixes linkerscript/{at4.s,overlay.test} LMA address issues exposed by
011b785505b1f6d315a93fd0a0409576ad8d1805.
Related: D74297

This patch improves emulation of GNU ld's heuristics on the difference
between the LMA and the VMA:
https://sourceware.org/binutils/docs/ld/Output-Section-LMA.html#Output-Section-LMA

New test linkerscript/lma-offset.s (based on at4.s) demonstrates some behaviors.

Reviewed By: psmith

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




More information about the All-commits mailing list