anolis-glibc/glibc-elf-Fix-tst-align3.patch
Rongwei Wang 16d0cc6441 elf: Properly align PT_LOAD segments
It introduces four patches about aligning PT_LOAD
segments and update to glibc-2.28-164.0.1.el8.

Signed-off-by: Rongwei Wang <rongwei.wang@linux.alibaba.com>
2022-03-21 05:18:07 -04:00

40 lines
965 B
Diff

From 716c4027b04db785034b0f67ac552cfaff360463 Mon Sep 17 00:00:00 2001
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue, 18 Jan 2022 14:36:45 -0300
Subject: [PATCH] elf: Fix tst-align3
The elf/tst-align3.c declares the function using a wrong prototype.
Checked on aarch64-linux-gnu.
Signed-off-by: Rongwei Wang <rongwei.wang@linux.alibaba.com>
---
elf/tst-align3.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/elf/tst-align3.c b/elf/tst-align3.c
index 4913c26..6853b6e 100644
--- a/elf/tst-align3.c
+++ b/elf/tst-align3.c
@@ -22,7 +22,7 @@
int bar __attribute__ ((aligned (ALIGN))) = 1;
-extern int do_load_test (void);
+extern void do_load_test (void);
static int
do_test (void)
@@ -30,7 +30,8 @@ do_test (void)
printf ("bar: %p\n", &bar);
TEST_VERIFY (is_aligned (&bar, ALIGN) == 0);
- return do_load_test ();
+ do_load_test ();
+ return 0;
}
#include <support/test-driver.c>
--
1.8.3.1