From: Ken Raeburn Date: Mon, 27 Sep 1993 03:55:33 +0000 (+0000) Subject: (flag_want_pic): New variable, mostly ignored. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b80d39a01c08c64e9f94c2158e713cfb754acf0b;p=binutils-gdb.git (flag_want_pic): New variable, mostly ignored. (md_parse_option) [TE_SUN3]: Set it for "-k". (m68k_ip): Generate proper fixup for mode 7.3. --- diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index 64f1ff22cde..0f243b8365b 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -81,6 +81,11 @@ CONST char FLT_CHARS[] = "rRsSfFdDxXeEpP"; const int md_reloc_size = 8; /* Size of relocation record */ +/* Are we trying to generate PIC code? If so, absolute references + ought to be made PC-relative. They aren't yet, but we can parse + the option now so the user doesn't get an error... */ +int flag_want_pic; + /* Its an arbitrary name: This means I don't approve of it */ /* See flames below */ static struct obstack robyn; @@ -2273,9 +2278,15 @@ m68k_ip (instring) { if (opP->reg == PC) { +#if 0 add_frag (adds (opP->con1), offs (opP->con1) + 2, TAB (PCLEA, SZ_UNDEF)); +#else + addword (0x0170); + add_fix ('l', opP->con1, 0); + addword (0), addword (0); +#endif break; } else @@ -4863,6 +4874,8 @@ s_proc (ignore) * so don't use or document it, but that's the way the parsing * works). * + * -k Ignored for now. (Sun 3 only. Indicates PIC.) + * * MAYBE_FLOAT_TOO is defined below so that specifying a processor type * (e.g. m68020) also requests that float instructions be included. This * is the default setup, mostly to avoid hassling users. A better @@ -4890,6 +4903,12 @@ md_parse_option (argP, cntP, vecP) jsr's. */ break; +#ifdef TE_SUN3 + case 'k': + flag_want_pic = 1; + break; +#endif + case 'A': (*argP)++; /* intentional fall-through */