aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-frv.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2004-05-06 02:46:45 +0000
committerAlexandre Oliva <aoliva@redhat.com>2004-05-06 02:46:45 +0000
commit996991aa957771a9dac87e9aa8c860bb188ff0c5 (patch)
treefb884402f069725acaf86cad15bc0661fa5721a6 /gas/config/tc-frv.h
parent43850d5b4bc33f27ee2c8b66073a16350927b44c (diff)
downloadgdb-996991aa957771a9dac87e9aa8c860bb188ff0c5.zip
gdb-996991aa957771a9dac87e9aa8c860bb188ff0c5.tar.gz
gdb-996991aa957771a9dac87e9aa8c860bb188ff0c5.tar.bz2
* configure.in: Set em=linux for frv-*-*linux*.
* configure: Rebuilt. * config/tc-frv.h (TARGET_FORMAT): Use elf32-frvfdpic if... (frv_md_fdpic_enabled): New. * config/tc-frv.c (frv_md_fdpic_enabled): New. (DEFAULT_FDPIC): New. (frv_flags): Use DEFAULT_FDPIC. (frv_pic_flag): Likewise. (OPTION_NOPIC): New. (md_longopts): Add -mnopic. (md_parse_option): Handle it. (md_show_usage): Add -mfdpic and -mnopic.
Diffstat (limited to 'gas/config/tc-frv.h')
-rw-r--r--gas/config/tc-frv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/config/tc-frv.h b/gas/config/tc-frv.h
index d2e185d..8bc3c7c 100644
--- a/gas/config/tc-frv.h
+++ b/gas/config/tc-frv.h
@@ -30,7 +30,9 @@
/* The target BFD architecture. */
#define TARGET_ARCH bfd_arch_frv
-#define TARGET_FORMAT "elf32-frv"
+#define TARGET_FORMAT (frv_md_fdpic_enabled () \
+ ? "elf32-frvfdpic" : "elf32-frv")
+extern bfd_boolean frv_md_fdpic_enabled (void);
#define TARGET_BYTES_BIG_ENDIAN 1