From 04ab6d0f556ed4d2a8ccb5707c3b1ded32354b38 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 20 Jun 2023 17:55:11 +0800 Subject: [PATCH] loongarch: Patch libelf for LoongArch support --- chapter01/changelog.xml | 9 +++++++++ chapter01/whatsnew.xml | 4 ++++ chapter03/patches.xml | 8 ++++++++ chapter08/libelf.xml | 8 +++++--- patches.ent | 3 +++ 5 files changed, 29 insertions(+), 3 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 9a0064f9a..1b7c21398 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,15 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2023-06-20 + + + [xry111] - Patch libelf for LoongArch support. + + + + 2023-06-17 diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 900d310f7..332e3a8e3 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -308,6 +308,10 @@ Pkgconf-&flit-core-version; + + &elfutils-loongarch-patch; + + Flit-core-&flit-core-version; diff --git a/chapter03/patches.xml b/chapter03/patches.xml index b98484149..dd280e4f6 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -77,6 +77,14 @@ --> + + Elfutils LoongArch Support Patch - &elfutils-loongarch-patch-size;: + + Download: + MD5 sum: &elfutils-loongarch-patch-md5; + + + Glibc FHS Patch - &glibc-fhs-patch-size;: diff --git a/chapter08/libelf.xml b/chapter08/libelf.xml index ddc786539..dd3642857 100644 --- a/chapter08/libelf.xml +++ b/chapter08/libelf.xml @@ -44,6 +44,11 @@ Libelf is part of the elfutils-&elfutils-version; package. Use the elfutils-&elfutils-version;.tar.bz2 file as the source tarball. + Add LoongArch support for this package: + +patch -Np1 -i ../&elfutils-loongarch-patch; +autoreconf -fi + Prepare Libelf for compilation: ./configure --prefix=/usr \ @@ -58,9 +63,6 @@ make check - 7 tests are known to fail because the support for LoongArch is - not complete in this Libelf release. - Install only Libelf: make -C libelf install diff --git a/patches.ent b/patches.ent index c9d483de5..ba8e783ba 100644 --- a/patches.ent +++ b/patches.ent @@ -30,6 +30,9 @@ --> + + +