From 9a36b83fcb37be9397982987720f89a9e195a2fc Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 19 Sep 1994 16:37:32 +0000 Subject: * read.c (pseudo_set, case O_symbol): If OBJ_COPY_SYMBOL_ATTRIBUTES is defined, invoke it. [BFD_ASSEMBLER]: Copy BSF_FUNCTION setting too. * config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define. --- gas/config/obj-elf.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gas/config/obj-elf.h') diff --git a/gas/config/obj-elf.h b/gas/config/obj-elf.h index 6be587c..b014182 100644 --- a/gas/config/obj-elf.h +++ b/gas/config/obj-elf.h @@ -76,6 +76,12 @@ extern void obj_elf_version PARAMS ((int)); globally defined sections. */ #define obj_sec_sym_ok_for_reloc(SEC) ((SEC)->owner != 0) +/* When setting one symbol equal to another, by default we probably + want them to have the same "size", whatever it means in the current + context. */ +#define OBJ_COPY_SYMBOL_ATTRIBUTES(DEST,SRC) \ + S_SET_SIZE ((DEST), S_GET_SIZE (SRC)) + /* Stabs go in a separate section. */ #define SEPARATE_STAB_SECTIONS -- cgit v1.1