From 10c9620d4e99fd04a637edbcbe9934c4672758b6 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Sat, 13 Jul 1996 00:54:55 +0000 Subject: Recognize and handle -K PIC --- gas/config/tc-ppc.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'gas/config/tc-ppc.c') 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': -- cgit v1.1