From 00923338dec84505addaf9cdeca2e9c844757824 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 1 May 2015 08:29:16 -0700 Subject: 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/config/tc-i386.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gas/config/tc-i386.h') diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index f645754..deea9c2 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -104,11 +104,6 @@ extern const char *i386_target_format (void); #endif #endif -#if (defined (OBJ_MAYBE_ELF) || defined (OBJ_ELF)) -#define md_end i386_elf_emit_arch_note -extern void i386_elf_emit_arch_note (void); -#endif - #define SUB_SEGMENT_ALIGN(SEG, FRCHAIN) 0 /* '$' may be used as immediate prefix. */ -- cgit v1.1