x86: Pass --gdwarf-3 to assembler
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 30 Jul 2020 11:56:46 +0000 (04:56 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 30 Jul 2020 11:56:46 +0000 (04:56 -0700)
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.

14 files changed:
binutils/ChangeLog
binutils/testsuite/binutils-all/i386/compressed-1a.d
binutils/testsuite/binutils-all/i386/compressed-1b.d
binutils/testsuite/binutils-all/i386/compressed-1c.d
binutils/testsuite/binutils-all/x86-64/compressed-1a.d
binutils/testsuite/binutils-all/x86-64/compressed-1b.d
binutils/testsuite/binutils-all/x86-64/compressed-1c.d
gas/ChangeLog
gas/testsuite/gas/elf/dwarf2-3.d
gas/testsuite/gas/elf/dwarf2-5.d
gas/testsuite/gas/i386/dw2-compress-3a.d
gas/testsuite/gas/i386/dw2-compress-3b.d
gas/testsuite/gas/i386/dw2-compressed-3a.d
gas/testsuite/gas/i386/dw2-compressed-3b.d

index 4e66a1361fcab265cbba0851710da245df61a504..dc369d3ba006f43cb70b0b7870b7a9315f3e4345 100644 (file)
@@ -1,3 +1,13 @@
+2020-07-30  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * 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.
+
 2020-07-29  Maciej W. Rozycki  <macro@linux-mips.org>
 
        * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
index 70b13cee5d6bfe0a87ea0fd378ff21321f56f4bb..bf04974a894b2e9ad5e2ba58641afb8985091ec7 100644 (file)
@@ -1,6 +1,6 @@
 #PROG: objcopy
 #source: compressed-1.s
-#as: --32 --compress-debug-sections
+#as: --32 --compress-debug-sections --gdwarf-3
 #objcopy:
 #readelf: -w
 #name: objcopy on compressed debug sections
index 9ed82caf60fb550682b1241b365bb0ca73346af5..6e45e552fc8b4b488b6e64134d5723c5d0ba7e68 100644 (file)
@@ -1,6 +1,6 @@
 #PROG: strip
 #source: compressed-1.s
-#as: --32 -mx86-used-note=no
+#as: --32 -mx86-used-note=no --gdwarf-3
 #strip:
 #readelf: -S --wide
 #name: strip on uncompressed debug sections
index dc96dd7dcf6cbfe297b2d65501a217aa2269c07a..1e1a18e7786beebe4178964bf2f459d66e4856f6 100644 (file)
@@ -1,6 +1,6 @@
 #PROG: strip
 #source: compressed-1.s
-#as: --32 --compress-debug-sections -mx86-used-note=no
+#as: --32 --compress-debug-sections -mx86-used-note=no --gdwarf-3
 #strip:
 #readelf: -S --wide
 #name: strip on compressed debug sections
index 3c8eb545024e381e9819a5864ab691684924cf5e..c4898d7748d03080149c474dd0974a8ad47e948c 100644 (file)
@@ -1,6 +1,6 @@
 #PROG: objcopy
 #source: compressed-1.s
-#as: --64 --compress-debug-sections
+#as: --64 --compress-debug-sections --gdwarf-3
 #objcopy:
 #readelf: -w
 #name: objcopy on compressed debug sections
index c041a5326002bf78d31d033dbeb24d702f19005e..517c8145397d61445a89321e99b1f46548b28bbd 100644 (file)
@@ -1,6 +1,6 @@
 #PROG: strip
 #source: compressed-1.s
-#as: --64 -mx86-used-note=no
+#as: --64 -mx86-used-note=no --gdwarf-3
 #strip:
 #readelf: -S --wide
 #name: strip on uncompressed debug sections
index 2039cd676ea49f1b6005e54a12eda7204d796e07..ba692bdb857f04989da01bc6dd73263322fbfa71 100644 (file)
@@ -1,6 +1,6 @@
 #PROG: strip
 #source: compressed-1.s
-#as: --64 --compress-debug-sections -mx86-used-note=no
+#as: --64 --compress-debug-sections -mx86-used-note=no --gdwarf-3
 #strip:
 #readelf: -S --wide
 #name: strip on compressed debug sections
index c2595b48c3f5b32e43e26e7a2c309f7c14a98841..27ebd2332975c16f754bf9fa8bfd14377dbc4e74 100644 (file)
@@ -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
index 594c9a6d9730adeff87bd6f6288bde5bb900722a..62dbe54ce00ea4326ae803fd29ff914eae7ed191 100644 (file)
@@ -1,3 +1,4 @@
+#as: --gdwarf-3
 #readelf: -wl
 #name: DWARF2 3
 #xfail: ft32*-* h8300-*-*
index 4e22e79c644e7b3b4ed8f8ceb1b7954bfbe5aa23..257bb55a017c177f5ab5c2e8f8a868ed04b8deaa 100644 (file)
@@ -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.
index c6de0d6f57c6a9a1e685692b828d06671f7a726d..50a1e28fa87f244862479351bd6c21d97f707348 100644 (file)
@@ -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
 
index a78e1e25e9f65a2b62f5de365f6072c3561fe848..798d5532c333e4f350f7ecef1b7d82b54f9e7daf 100644 (file)
@@ -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
 
index b8b4434a51e7ab0c42927ea79edd9b49503ecff9..e4fcf535b6e21f587ea3aaf7b948901b07c0df41 100644 (file)
@@ -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
 
index ac51238a96d18973e11d4247342a649a06a08e53..37f6b7effb0bcd6d236c8d00f23df868092b0c82 100644 (file)
@@ -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