[all-commits] [llvm/llvm-project] de0dda: [ELF] Warn changed output section address
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Feb 21 08:13:55 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: de0dda54d38137d0714c279a540074fe73822b8b
https://github.com/llvm/llvm-project/commit/de0dda54d38137d0714c279a540074fe73822b8b
Author: Fangrui Song <maskray at google.com>
Date: 2020-02-21 (Fri, 21 Feb 2020)
Changed paths:
M lld/ELF/LinkerScript.cpp
M lld/ELF/LinkerScript.h
M lld/ELF/Writer.cpp
M lld/test/ELF/linkerscript/lma-align.test
M lld/test/ELF/linkerscript/section-align2.test
Log Message:
-----------
[ELF] Warn changed output section address
When the output section address (addrExpr) is specified, GNU ld warns if
sh_addr is different. This patch implements the warning.
Note, LinkerScript::assignAddresses can be called more than once. We
need to record the changed section addresses, and only report the
warnings after the addresses are finalized.
Reviewed By: grimar
Differential Revision: https://reviews.llvm.org/D74741
More information about the All-commits
mailing list