[all-commits] [llvm/llvm-project] 1dfb94: [ELF] Improve OVERLAY tests

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Jan 7 21:36:48 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1dfb9498333a6c7c6ac012eb70dc593f5165a025
      https://github.com/llvm/llvm-project/commit/1dfb9498333a6c7c6ac012eb70dc593f5165a025
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-01-07 (Sun, 07 Jan 2024)

  Changed paths:
    R lld/test/ELF/linkerscript/overlay-reject.test
    R lld/test/ELF/linkerscript/overlay-reject2.test
    M lld/test/ELF/linkerscript/overlay.test

  Log Message:
  -----------
  [ELF] Improve OVERLAY tests

Also test two issues:

* When the start address is `.`, subsequent sections don't share the
  address of the first overlay section.
* When the first overlay section is empty and discardable, `p_paddr` is
  incorrectly zero. This is because a discarded section has a zero
  address, causing `prev->getLMA() + prev->size` where `prev` refers to
  the first section to evaluate to zero.




More information about the All-commits mailing list