Remove i386_elf_emit_arch_note
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 1 May 2015 15:29:16 +0000 (08:29 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 1 May 2015 15:29:16 +0000 (08:29 -0700)
commit00923338dec84505addaf9cdeca2e9c844757824
treed903956db30bc8e6efc22951b65d4dda1ed897ae
parentb633b7258d319687ac625da1f1b9be20e3bdaedb
Remove i386_elf_emit_arch_note

This x86 assembler patch:

https://sourceware.org/ml/binutils/2001-11/msg00344.html

generates a .note section for .arch directive so that GDB can tell which
architecture an i386 binary belongs:

https://sourceware.org/ml/binutils/2001-11/msg00271.html

However, x86 assembly code can have any instructions.  A .note section
doesn't help.  This patch removes it.

gas/

* config/tc-i386.c (i386_elf_emit_arch_note): Removed.
* config/tc-i386.h (md_end): Likewise.
(i386_elf_emit_arch_note): Likewise.

gas/testsuite/

* gas/i386/i386.exp: Run note.
* gas/i386/note.d: New file.
* gas/i386/note.s: Likewise.
gas/ChangeLog
gas/config/tc-i386.c
gas/config/tc-i386.h
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/note.d [new file with mode: 0644]
gas/testsuite/gas/i386/note.s [new file with mode: 0644]
This page took 0.028976 seconds and 4 git commands to generate.