From: Ken Raeburn Date: Mon, 19 Sep 1994 16:37:32 +0000 (+0000) Subject: * read.c (pseudo_set, case O_symbol): If OBJ_COPY_SYMBOL_ATTRIBUTES is defined, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a36b83fcb37be9397982987720f89a9e195a2fc;p=binutils-gdb.git * 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. --- diff --git a/gas/config/obj-elf.h b/gas/config/obj-elf.h index 6be587c9c39..b014182ce5b 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