aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-09-19 16:37:32 +0000
committerKen Raeburn <raeburn@cygnus>1994-09-19 16:37:32 +0000
commit9a36b83fcb37be9397982987720f89a9e195a2fc (patch)
treec46eab950e0ce50933ccfbcf2c3f328a40f45ee1 /gas/config
parenta9918088423b3109a324d5818a830c59bc2504b0 (diff)
downloadgdb-9a36b83fcb37be9397982987720f89a9e195a2fc.zip
gdb-9a36b83fcb37be9397982987720f89a9e195a2fc.tar.gz
gdb-9a36b83fcb37be9397982987720f89a9e195a2fc.tar.bz2
* 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.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-elf.h6
1 files changed, 6 insertions, 0 deletions
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