diff options
author | Michael Meissner <gnu@the-meissners.org> | 1996-07-13 00:54:55 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1996-07-13 00:54:55 +0000 |
commit | 10c9620d4e99fd04a637edbcbe9934c4672758b6 (patch) | |
tree | 5a9ca0f820edb725565c2029376ff18df5d4a4d1 /gas/config/tc-ppc.c | |
parent | f76215e0a617f3b2f7f10acbd9bdae3f989771fe (diff) | |
download | gdb-10c9620d4e99fd04a637edbcbe9934c4672758b6.zip gdb-10c9620d4e99fd04a637edbcbe9934c4672758b6.tar.gz gdb-10c9620d4e99fd04a637edbcbe9934c4672758b6.tar.bz2 |
Recognize and handle -K PIC
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r-- | gas/config/tc-ppc.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index a5b0a72..0a8671c 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -606,7 +606,7 @@ const int md_long_jump_size = 4; #endif #ifdef OBJ_ELF -CONST char *md_shortopts = "b:l:usm:VQ:"; +CONST char *md_shortopts = "b:l:usm:K:VQ:"; #else CONST char *md_shortopts = "um:"; #endif @@ -651,6 +651,18 @@ md_parse_option (c, arg) return 0; break; + + case 'K': + /* Recognize -K PIC */ + if (strcmp (arg, "PIC") == 0) + { + mrelocatable = true; + ppc_flags |= EF_PPC_RELOCATABLE_LIB; + } + else + return 0; + + break; #endif case 'm': |