aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-07-30 04:56:46 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-07-30 04:56:46 -0700
commitac2599c44788ae34a6b26b5dc42848d176f99a5d (patch)
tree2cba7389813188b6c890f8f3381d82811fd89dda /gas
parentf1dfbfdbc6c07a8ee4ea185a2f15615600857531 (diff)
downloadgdb-ac2599c44788ae34a6b26b5dc42848d176f99a5d.zip
gdb-ac2599c44788ae34a6b26b5dc42848d176f99a5d.tar.gz
gdb-ac2599c44788ae34a6b26b5dc42848d176f99a5d.tar.bz2
x86: Pass --gdwarf-3 to assembler
Pass --gdwarf-3 to assembler for commit 4d8ee860737005517be588f4771c358593fa421c Author: Nick Clifton <nickc@redhat.com> Date: Thu Jul 30 08:39:14 2020 +0100 Prevent the generation of DWARF level 0 line number tables... binutils/ * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3 to assembler. * testsuite/binutils-all/i386/compressed-1b.d: Likewise. * testsuite/binutils-all/i386/compressed-1c.d: Likewise. * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise. * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise. * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise. gas/ * testsuite/gas/elf/dwarf2-3.d:Pass --gdwarf-3 to assembler. * testsuite/gas/elf/dwarf2-5.d: Likewise. * testsuite/gas/i386/dw2-compress-3a.d: Likewise. * testsuite/gas/i386/dw2-compress-3b.d: Likewise. * testsuite/gas/i386/dw2-compressed-3a.d: Likewise. * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog9
-rw-r--r--gas/testsuite/gas/elf/dwarf2-3.d1
-rw-r--r--gas/testsuite/gas/elf/dwarf2-5.d2
-rw-r--r--gas/testsuite/gas/i386/dw2-compress-3a.d2
-rw-r--r--gas/testsuite/gas/i386/dw2-compress-3b.d2
-rw-r--r--gas/testsuite/gas/i386/dw2-compressed-3a.d2
-rw-r--r--gas/testsuite/gas/i386/dw2-compressed-3b.d2
7 files changed, 15 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c2595b4..27ebd23 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,12 @@
+2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/gas/elf/dwarf2-3.d:Pass --gdwarf-3 to assembler.
+ * testsuite/gas/elf/dwarf2-5.d: Likewise.
+ * testsuite/gas/i386/dw2-compress-3a.d: Likewise.
+ * testsuite/gas/i386/dw2-compress-3b.d: Likewise.
+ * testsuite/gas/i386/dw2-compressed-3a.d: Likewise.
+ * testsuite/gas/i386/dw2-compressed-3b.d: Likewise.
+
2020-07-30 Nick Clifton <nickc@redhat.com>
* as.c (dwarf_level): Initialise to 4 in case this is not set on
diff --git a/gas/testsuite/gas/elf/dwarf2-3.d b/gas/testsuite/gas/elf/dwarf2-3.d
index 594c9a6..62dbe54 100644
--- a/gas/testsuite/gas/elf/dwarf2-3.d
+++ b/gas/testsuite/gas/elf/dwarf2-3.d
@@ -1,3 +1,4 @@
+#as: --gdwarf-3
#readelf: -wl
#name: DWARF2 3
#xfail: ft32*-* h8300-*-*
diff --git a/gas/testsuite/gas/elf/dwarf2-5.d b/gas/testsuite/gas/elf/dwarf2-5.d
index 4e22e79..257bb55 100644
--- a/gas/testsuite/gas/elf/dwarf2-5.d
+++ b/gas/testsuite/gas/elf/dwarf2-5.d
@@ -1,4 +1,4 @@
-#as:
+#as: --gdwarf-3
#readelf: -x.rodata -wlL
#name: DWARF2 5
# The am33 cr16 crx ft32 mn10 msp430 nds32 rl78 and rx targets do not evaluate the subtraction of symbols at assembly time.
diff --git a/gas/testsuite/gas/i386/dw2-compress-3a.d b/gas/testsuite/gas/i386/dw2-compress-3a.d
index c6de0d6..50a1e28 100644
--- a/gas/testsuite/gas/i386/dw2-compress-3a.d
+++ b/gas/testsuite/gas/i386/dw2-compress-3a.d
@@ -1,5 +1,5 @@
#source: dw2-compress-3.s
-#as: --compress-debug-sections --elf-stt-common=no
+#as: --compress-debug-sections --elf-stt-common=no --gdwarf-3
#readelf: -w
#name: DWARF2 debugging information 3 w/o STT_COMMON
diff --git a/gas/testsuite/gas/i386/dw2-compress-3b.d b/gas/testsuite/gas/i386/dw2-compress-3b.d
index a78e1e2..798d553 100644
--- a/gas/testsuite/gas/i386/dw2-compress-3b.d
+++ b/gas/testsuite/gas/i386/dw2-compress-3b.d
@@ -1,5 +1,5 @@
#source: dw2-compress-3.s
-#as: --compress-debug-sections --elf-stt-common=yes
+#as: --compress-debug-sections --elf-stt-common=yes --gdwarf-3
#readelf: -w
#name: DWARF2 debugging information 3 with STT_COMMON
diff --git a/gas/testsuite/gas/i386/dw2-compressed-3a.d b/gas/testsuite/gas/i386/dw2-compressed-3a.d
index b8b4434..e4fcf53 100644
--- a/gas/testsuite/gas/i386/dw2-compressed-3a.d
+++ b/gas/testsuite/gas/i386/dw2-compressed-3a.d
@@ -1,5 +1,5 @@
#source: dw2-compress-3.s
-#as: --compress-debug-sections=zlib-gabi --elf-stt-common=no
+#as: --compress-debug-sections=zlib-gabi --elf-stt-common=no --gdwarf-3
#readelf: -w
#name: DWARF2 debugging information 3 with SHF_COMPRESSED w/o STT_COMMON
diff --git a/gas/testsuite/gas/i386/dw2-compressed-3b.d b/gas/testsuite/gas/i386/dw2-compressed-3b.d
index ac51238..37f6b7e 100644
--- a/gas/testsuite/gas/i386/dw2-compressed-3b.d
+++ b/gas/testsuite/gas/i386/dw2-compressed-3b.d
@@ -1,5 +1,5 @@
#source: dw2-compress-3.s
-#as: --compress-debug-sections=zlib-gabi --elf-stt-common=yes
+#as: --compress-debug-sections=zlib-gabi --elf-stt-common=yes --gdwarf-3
#readelf: -w
#name: DWARF2 debugging information 3 with SHF_COMPRESSED with STT_COMMON