X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-hppa.h;h=ab54b4d095197f70441761c8ad5a582c82d29fa6;hb=7e9ad3a35cde2342e07c34345d5ee671ea8aeeb4;hp=4f3a7cd9ad8e89b84c34a21343904a366cbd262d;hpb=6f2750feaf2827ef8a1a0a5b2f90c1e9a6cabbd1;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-hppa.h b/gas/config/tc-hppa.h index 4f3a7cd9ad..ab54b4d095 100644 --- a/gas/config/tc-hppa.h +++ b/gas/config/tc-hppa.h @@ -1,5 +1,5 @@ /* tc-hppa.h -- Header file for the PA - Copyright (C) 1989-2016 Free Software Foundation, Inc. + Copyright (C) 1989-2019 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -166,7 +166,7 @@ int hppa_fix_adjustable (struct fix *); limitations as those for the 32-bit SOM target. */ #define DIFF_EXPR_OK 1 -/* Handle .type psuedo. Given a type string of `millicode', set the +/* Handle .type pseudo. Given a type string of `millicode', set the internal elf symbol type to STT_PARISC_MILLI, and return BSF_FUNCTION for the BFD symbol type. */ #define md_elf_symbol_type(name, sym, elf) \ @@ -177,6 +177,14 @@ int hppa_fix_adjustable (struct fix *); ), BSF_FUNCTION) \ : -1) +/* Handle type change from .type pseudo: Zap STT_PARISC_MILLI when + switching to a non-function type. */ +#define md_elf_symbol_type_change(sym, elf, type) \ + ((type) != BSF_FUNCTION \ + && (((elf)->internal_elf_sym.st_info = \ + ELF_ST_INFO (ELF_ST_BIND ((elf)->internal_elf_sym.st_info), \ + STT_NOTYPE)), 0)) + #define tc_frob_symbol(sym,punt) \ { \ if ((S_GET_SEGMENT (sym) == bfd_und_section_ptr \