V2 [PATCH 0/7] x86: Add -mx86-used-note= to generate property notes

H.J. Lu hjl.tools@gmail.com
Tue Aug 28 15:23:00 GMT 2018


This set of patches adds -mx86-used-note= to x86 assembler to generate
GNU property notes with GNU_PROPERTY_X86_FEATURE_2_USED and
GNU_PROPERTY_X86_ISA_1_USED properties.  If the assembly input contains
no instructions, set the GNU_PROPERTY_X86_UINT32_VALID bit in
GNU_PROPERTY_X86_FEATURE_2_USED property.

H.J. Lu (7):
  x86: Extend assembler to generate GNU property notes
  x86: Add explicit -mx86-used-note=[yes|no] to tests
  binutils: Adjusted tests for .note.gnu.property section
  x86: pass -mx86-used-note=no to assembler
  gas: Pass -mx86-used-note=no to assembler
  ld: Append -Wa,-mx86-used-note=no for S-records tests
  ld: Append -mx86-used-note=no to ASFLAGS

 .../binutils-all/i386/compressed-1b.d         |   2 +-
 .../binutils-all/i386/compressed-1c.d         |   2 +-
 binutils/testsuite/binutils-all/i386/empty.d  |   5 +-
 binutils/testsuite/binutils-all/i386/ibt.d    |   5 +-
 .../testsuite/binutils-all/i386/pr21231a.d    |   5 +-
 .../testsuite/binutils-all/i386/pr21231b.d    |   5 +-
 binutils/testsuite/binutils-all/i386/shstk.d  |   5 +-
 binutils/testsuite/binutils-all/readelf.s-64  |  11 +-
 binutils/testsuite/binutils-all/strip-3.d     |   2 +-
 .../binutils-all/x86-64/compressed-1b.d       |   2 +-
 .../binutils-all/x86-64/compressed-1c.d       |   2 +-
 .../testsuite/binutils-all/x86-64/empty-x32.d |   5 +-
 .../testsuite/binutils-all/x86-64/empty.d     |   5 +-
 .../testsuite/binutils-all/x86-64/ibt-x32.d   |   5 +-
 binutils/testsuite/binutils-all/x86-64/ibt.d  |   5 +-
 .../testsuite/binutils-all/x86-64/pr21231a.d  |   5 +-
 .../testsuite/binutils-all/x86-64/pr21231b.d  |   5 +-
 .../binutils-all/x86-64/pr23494a-x32.d        |   5 +-
 .../testsuite/binutils-all/x86-64/pr23494a.d  |   5 +-
 .../binutils-all/x86-64/pr23494b-x32.d        |   2 +-
 .../testsuite/binutils-all/x86-64/pr23494b.d  |   2 +-
 .../binutils-all/x86-64/pr23494c-x32.d        |   2 +-
 .../testsuite/binutils-all/x86-64/pr23494c.d  |   2 +-
 .../binutils-all/x86-64/pr23494d-x32.d        |   5 +-
 .../testsuite/binutils-all/x86-64/pr23494d.d  |   5 +-
 .../binutils-all/x86-64/pr23494e-x32.d        |   5 +-
 .../testsuite/binutils-all/x86-64/pr23494e.d  |   5 +-
 .../testsuite/binutils-all/x86-64/shstk-x32.d |   5 +-
 .../testsuite/binutils-all/x86-64/shstk.d     |   5 +-
 gas/NEWS                                      |   5 +
 gas/config.in                                 |   4 +
 gas/config/tc-i386.c                          | 303 +++++++++++++++++-
 gas/config/tc-i386.h                          |   5 +
 gas/configure                                 |  28 +-
 gas/configure.ac                              |  21 ++
 gas/doc/c-i386.texi                           |   9 +
 gas/testsuite/gas/cfi/cfi-label.d             |   1 +
 gas/testsuite/gas/elf/elf.exp                 |   6 +-
 gas/testsuite/gas/i386/bss.d                  |   1 +
 gas/testsuite/gas/i386/divide.d               |   1 +
 gas/testsuite/gas/i386/ilp32/quad.d           |   1 +
 gas/testsuite/gas/i386/ilp32/reloc64.d        |   1 +
 gas/testsuite/gas/i386/ilp32/x86-64-size-1.d  |   1 +
 gas/testsuite/gas/i386/ilp32/x86-64-size-3.d  |   1 +
 gas/testsuite/gas/i386/ilp32/x86-64-size-5.d  |   1 +
 gas/testsuite/gas/i386/ilp32/x86-64-unwind.d  |   1 +
 gas/testsuite/gas/i386/property-1.d           |   1 +
 gas/testsuite/gas/i386/relax.d                |   1 +
 gas/testsuite/gas/i386/reloc64.d              |   1 +
 gas/testsuite/gas/i386/size-1.d               |   1 +
 gas/testsuite/gas/i386/size-3.d               |   1 +
 gas/testsuite/gas/i386/x86-64-property-1.d    |   2 +-
 gas/testsuite/gas/i386/x86-64-size-1.d        |   1 +
 gas/testsuite/gas/i386/x86-64-size-3.d        |   1 +
 gas/testsuite/gas/i386/x86-64-size-5.d        |   1 +
 gas/testsuite/gas/i386/x86-64-unwind.d        |   1 +
 ld/testsuite/ld-elf/elf.exp                   |   8 +
 ld/testsuite/ld-i386/i386.exp                 | 263 ++++++++-------
 ld/testsuite/ld-i386/no-plt.exp               |  82 ++---
 ld/testsuite/ld-i386/pr23486a.d               |   2 +-
 ld/testsuite/ld-i386/pr23486b.d               |   2 +-
 ld/testsuite/ld-i386/property-1a.r            |   9 +
 ld/testsuite/ld-i386/property-2a.r            |   9 +
 ld/testsuite/ld-i386/property-3a.r            |   9 +
 ld/testsuite/ld-i386/property-4a.r            |   9 +
 ld/testsuite/ld-i386/property-5a.r            |   9 +
 ld/testsuite/ld-i386/property-7a.r            |   8 +
 ld/testsuite/ld-i386/property-x86-3.d         |   5 +-
 ld/testsuite/ld-i386/property-x86-4a.d        |   7 +-
 ld/testsuite/ld-i386/property-x86-ibt1a.d     |   7 +-
 ld/testsuite/ld-i386/property-x86-ibt1b.d     |   7 +-
 ld/testsuite/ld-i386/property-x86-ibt2.d      |   6 +-
 ld/testsuite/ld-i386/property-x86-ibt3a.d     |   6 +-
 ld/testsuite/ld-i386/property-x86-ibt3b.d     |   6 +-
 ld/testsuite/ld-i386/property-x86-ibt4.d      |   6 +-
 ld/testsuite/ld-i386/property-x86-ibt5.d      |   6 +-
 ld/testsuite/ld-i386/property-x86-shstk1a.d   |   7 +-
 ld/testsuite/ld-i386/property-x86-shstk1b.d   |   7 +-
 ld/testsuite/ld-i386/property-x86-shstk2.d    |   6 +-
 ld/testsuite/ld-i386/property-x86-shstk3a.d   |   6 +-
 ld/testsuite/ld-i386/property-x86-shstk3b.d   |   6 +-
 ld/testsuite/ld-i386/property-x86-shstk4.d    |   6 +-
 ld/testsuite/ld-i386/property-x86-shstk5.d    |   6 +-
 ld/testsuite/ld-i386/tls.exp                  |  44 +--
 ld/testsuite/ld-ifunc/ifunc.exp               |   8 +
 ld/testsuite/ld-scripts/defined.exp           |   8 +
 ld/testsuite/ld-scripts/overlay-size.exp      |   9 +
 ld/testsuite/ld-srec/srec.exp                 |   7 +
 ld/testsuite/ld-x86-64/bnd-branch-1-now.d     |   2 +-
 ld/testsuite/ld-x86-64/bnd-ifunc-1-now.d      |   2 +-
 ld/testsuite/ld-x86-64/bnd-ifunc-2-now.d      |   2 +-
 ld/testsuite/ld-x86-64/bnd-ifunc-2.d          |   2 +-
 ld/testsuite/ld-x86-64/bnd-plt-1-now.d        |   2 +-
 ld/testsuite/ld-x86-64/bnd-plt-1.d            |   2 +-
 ld/testsuite/ld-x86-64/mpx.exp                |   6 +-
 ld/testsuite/ld-x86-64/no-plt.exp             |  54 ++--
 ld/testsuite/ld-x86-64/pr23486a-x32.d         |   2 +-
 ld/testsuite/ld-x86-64/pr23486a.d             |   2 +-
 ld/testsuite/ld-x86-64/pr23486b-x32.d         |   2 +-
 ld/testsuite/ld-x86-64/pr23486b.d             |   2 +-
 ld/testsuite/ld-x86-64/property-1a.r          |   9 +
 ld/testsuite/ld-x86-64/property-2a.r          |   9 +
 ld/testsuite/ld-x86-64/property-3a.r          |   9 +
 ld/testsuite/ld-x86-64/property-4a.r          |   9 +
 ld/testsuite/ld-x86-64/property-5a.r          |   9 +
 ld/testsuite/ld-x86-64/property-7a.r          |   8 +
 ld/testsuite/ld-x86-64/property-x86-3-x32.d   |   5 +-
 ld/testsuite/ld-x86-64/property-x86-3.d       |   5 +-
 ld/testsuite/ld-x86-64/property-x86-4a-x32.d  |   7 +-
 ld/testsuite/ld-x86-64/property-x86-4a.d      |   7 +-
 .../ld-x86-64/property-x86-ibt1a-x32.d        |   7 +-
 ld/testsuite/ld-x86-64/property-x86-ibt1a.d   |   7 +-
 .../ld-x86-64/property-x86-ibt1b-x32.d        |   7 +-
 ld/testsuite/ld-x86-64/property-x86-ibt1b.d   |   7 +-
 .../ld-x86-64/property-x86-ibt2-x32.d         |   6 +-
 ld/testsuite/ld-x86-64/property-x86-ibt2.d    |   6 +-
 .../ld-x86-64/property-x86-ibt3a-x32.d        |   6 +-
 ld/testsuite/ld-x86-64/property-x86-ibt3a.d   |   6 +-
 .../ld-x86-64/property-x86-ibt3b-x32.d        |   6 +-
 ld/testsuite/ld-x86-64/property-x86-ibt3b.d   |   6 +-
 .../ld-x86-64/property-x86-ibt4-x32.d         |   6 +-
 ld/testsuite/ld-x86-64/property-x86-ibt4.d    |   6 +-
 .../ld-x86-64/property-x86-ibt5-x32.d         |   6 +-
 ld/testsuite/ld-x86-64/property-x86-ibt5.d    |   6 +-
 .../ld-x86-64/property-x86-shstk1a-x32.d      |   7 +-
 ld/testsuite/ld-x86-64/property-x86-shstk1a.d |   7 +-
 .../ld-x86-64/property-x86-shstk1b-x32.d      |   7 +-
 ld/testsuite/ld-x86-64/property-x86-shstk1b.d |   7 +-
 .../ld-x86-64/property-x86-shstk2-x32.d       |   6 +-
 ld/testsuite/ld-x86-64/property-x86-shstk2.d  |   6 +-
 .../ld-x86-64/property-x86-shstk3a-x32.d      |   6 +-
 ld/testsuite/ld-x86-64/property-x86-shstk3a.d |   6 +-
 .../ld-x86-64/property-x86-shstk3b-x32.d      |   6 +-
 ld/testsuite/ld-x86-64/property-x86-shstk3b.d |   6 +-
 .../ld-x86-64/property-x86-shstk4-x32.d       |   6 +-
 ld/testsuite/ld-x86-64/property-x86-shstk4.d  |   6 +-
 .../ld-x86-64/property-x86-shstk5-x32.d       |   6 +-
 ld/testsuite/ld-x86-64/property-x86-shstk5.d  |   6 +-
 ld/testsuite/ld-x86-64/tls.exp                |  44 +--
 ld/testsuite/ld-x86-64/x86-64.exp             | 302 ++++++++---------
 140 files changed, 1254 insertions(+), 536 deletions(-)
 create mode 100644 ld/testsuite/ld-i386/property-1a.r
 create mode 100644 ld/testsuite/ld-i386/property-2a.r
 create mode 100644 ld/testsuite/ld-i386/property-3a.r
 create mode 100644 ld/testsuite/ld-i386/property-4a.r
 create mode 100644 ld/testsuite/ld-i386/property-5a.r
 create mode 100644 ld/testsuite/ld-i386/property-7a.r
 create mode 100644 ld/testsuite/ld-x86-64/property-1a.r
 create mode 100644 ld/testsuite/ld-x86-64/property-2a.r
 create mode 100644 ld/testsuite/ld-x86-64/property-3a.r
 create mode 100644 ld/testsuite/ld-x86-64/property-4a.r
 create mode 100644 ld/testsuite/ld-x86-64/property-5a.r
 create mode 100644 ld/testsuite/ld-x86-64/property-7a.r

-- 
2.17.1



More information about the Binutils mailing list