mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
Toolchain: Backport --update-section
support to llvm-objcopy
This commit backports the LLVM commit that adds support for the `--update-section` flag to llvm-objcopy. We use this feature of GNU objcopy to embed the symbol map in the kernel. The corresponding LLVM Phabricator Differential Revision can be found here: https://reviews.llvm.org/D112116 This patch is identical to the upstream commit, except for two hunks that had to be changed as they didn't apply cleanly.
This commit is contained in:
parent
3132ce1d36
commit
b19cc3cdcb
3 changed files with 444 additions and 1 deletions
|
@ -208,11 +208,13 @@ pushd "$DIR/Tarballs"
|
|||
git init > /dev/null
|
||||
git add . > /dev/null
|
||||
git commit -am "BASE" > /dev/null
|
||||
git am "$DIR"/Patches/llvm-backport-objcopy-update-section.patch > /dev/null
|
||||
git apply "$DIR"/Patches/llvm.patch > /dev/null
|
||||
else
|
||||
patch -p1 < "$DIR/Patches/llvm.patch" > /dev/null
|
||||
patch -p1 < "$DIR/Patches/llvm-backport-objcopy-update-section.patch" > /dev/null
|
||||
fi
|
||||
$MD5SUM "$DIR/Patches/llvm.patch" > .patch.applied
|
||||
$MD5SUM "$DIR/Patches/llvm.patch" "$DIR/Patches/llvm-backport-objcopy-update-section.patch" > .patch.applied
|
||||
popd
|
||||
|
||||
md5=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue