This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb/binutils-2_26-branch] ld: relax alignment requirements of compressed .debug_* section checks
- From: H.J.Lu <hjl at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 14 Mar 2016 22:00:04 -0000
- Subject: [binutils-gdb/binutils-2_26-branch] ld: relax alignment requirements of compressed .debug_* section checks
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=343a89051f448d29ebd3f00106ce7f9793912a89
commit 343a89051f448d29ebd3f00106ce7f9793912a89
Author: Jan Beulich <jbeulich@novell.com>
Date: Mon Dec 7 17:52:25 2015 +0100
ld: relax alignment requirements of compressed .debug_* section checks
This fixes a failure of the gabinormal linking test on some distros
(where e.g. crt1.o has a .debug_aranges section with larger alignment).
Backport from master
* ld-elf/gabiend.rt: Accept any alignment.
* ld-elf/gabinormal.rt: Likewise.
Diff:
---
ld/ChangeLog | 8 ++++++++
ld/testsuite/ld-elf/gabiend.rt | 2 +-
ld/testsuite/ld-elf/gabinormal.rt | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 2fa9ad3..edbf9f2 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,11 @@
+2016-03-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ Backport from master
+ 2015-12-07 Jan Beulich <jbeulich@suse.com>
+
+ * ld-elf/gabiend.rt: Accept any alignment.
+ * ld-elf/gabinormal.rt: Likewise.
+
2016-03-09 H.J. Lu <hongjiu.lu@intel.com>
Backport from master
diff --git a/ld/testsuite/ld-elf/gabiend.rt b/ld/testsuite/ld-elf/gabiend.rt
index 23bc36c..75b5ba7 100644
--- a/ld/testsuite/ld-elf/gabiend.rt
+++ b/ld/testsuite/ld-elf/gabiend.rt
@@ -1,4 +1,4 @@
#...
+\[[0-9a-f]+\]: .*COMPRESSED
- +ZLIB, [0-9a-f]+, 1
+ +ZLIB, [0-9a-f]+, [1-9][0-9]*
#pass
diff --git a/ld/testsuite/ld-elf/gabinormal.rt b/ld/testsuite/ld-elf/gabinormal.rt
index 23bc36c..75b5ba7 100644
--- a/ld/testsuite/ld-elf/gabinormal.rt
+++ b/ld/testsuite/ld-elf/gabinormal.rt
@@ -1,4 +1,4 @@
#...
+\[[0-9a-f]+\]: .*COMPRESSED
- +ZLIB, [0-9a-f]+, 1
+ +ZLIB, [0-9a-f]+, [1-9][0-9]*
#pass