aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-alpha.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-09-11 18:26:04 +0000
committerRichard Henderson <rth@redhat.com>2001-09-11 18:26:04 +0000
commitd61a78a7afc8aff36e96a065460943aea80f39b4 (patch)
treec7f3f304c28df1b8cac970fbdaf6bd3343f357ca /gas/config/tc-alpha.c
parentf94952df275cf6c0435a486a654476b0dac3f632 (diff)
downloadgdb-d61a78a7afc8aff36e96a065460943aea80f39b4.zip
gdb-d61a78a7afc8aff36e96a065460943aea80f39b4.tar.gz
gdb-d61a78a7afc8aff36e96a065460943aea80f39b4.tar.bz2
* config/tc-alpha.c (alpha_elf_section_letter): New.
(alpha_elf_section_flags): New. * config/tc-alpha.h (md_elf_section_letter): New. (md_elf_section_flags): New. * config/tc-ia64.c (ia64_elf_section_letter): New. * config/tc-ia64.h (md_elf_section_letter): New.
Diffstat (limited to 'gas/config/tc-alpha.c')
-rw-r--r--gas/config/tc-alpha.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c
index 834186a..7a8c04c 100644
--- a/gas/config/tc-alpha.c
+++ b/gas/config/tc-alpha.c
@@ -5399,6 +5399,34 @@ select_gp_value ()
}
#endif /* OBJ_ECOFF */
+#ifdef OBJ_ELF
+/* Map 's' to SHF_ALPHA_GPREL. */
+
+int
+alpha_elf_section_letter (letter, ptr_msg)
+ int letter;
+ char **ptr_msg;
+{
+ if (letter == 's')
+ return SHF_ALPHA_GPREL;
+
+ *ptr_msg = _("Bad .section directive: want a,s,w,x,M,S in string");
+ return 0;
+}
+
+/* Map SHF_ALPHA_GPREL to SEC_SMALL_DATA. */
+
+flagword
+alpha_elf_section_flags (flags, attr, type)
+ flagword flags;
+ int attr, type ATTRIBUTE_UNUSED;
+{
+ if (attr & SHF_ALPHA_GPREL)
+ flags |= SEC_SMALL_DATA;
+ return flags;
+}
+#endif /* OBJ_ELF */
+
/* Called internally to handle all alignment needs. This takes care
of eliding calls to frag_align if'n the cached current alignment
says we've already got it, as well as taking care of the auto-align