diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-05-18 16:49:11 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-05-18 16:49:11 +0000 |
commit | 1edb5a543cc787c2cbc499682f6795003246dbc2 (patch) | |
tree | f229365e9c9f8e8b07ab65cd5ce7b84a10f97452 | |
parent | df3fa17c0039c7b0c015fcdf9745e8b43c0a83c3 (diff) |
don't use 18136dyncall unless we are pic code and fast indirect calls are disabled
-rw-r--r-- | gnu/usr.bin/gcc/config/pa/pa-openbsd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/usr.bin/gcc/config/pa/pa-openbsd.h b/gnu/usr.bin/gcc/config/pa/pa-openbsd.h index 22405a9be3d..a46a2a961fd 100644 --- a/gnu/usr.bin/gcc/config/pa/pa-openbsd.h +++ b/gnu/usr.bin/gcc/config/pa/pa-openbsd.h @@ -1951,10 +1951,11 @@ do { fputs ("\t.SPACE $PRIVATE$\n\ \t.SPACE $TEXT$\n\ \t.SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44\n\ \t.SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY\n\ -\t.IMPORT $global$,DATA\n\ -\t.IMPORT $$dyncall,MILLICODE\n", FILE);\ +\t.IMPORT $global$,DATA\n", FILE);\ + if (flag_pic || !TARGET_FAST_INDIRECT_CALLS)\ + fputs ("\t.IMPORT $$dyncall, MILLICODE\n", FILE);\ if (profile_flag)\ - fprintf (FILE, "\t.IMPORT _mcount, CODE\n");\ + fputs ("\t.IMPORT _mcount, CODE\n", FILE);\ if (write_symbols != NO_DEBUG) \ output_file_directive ((FILE), main_input_filename); \ } while (0) |