Skip to content

Commit

Permalink
Disable -fpic and -fPIC
Browse files Browse the repository at this point in the history
This is still not supported in our elf toolchain

Fixes #27
  • Loading branch information
th-otto committed Sep 17, 2023
1 parent 3580ef9 commit cf877a4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gcc/config/m68k/mint.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,18 @@ along with GCC; see the file COPYING3. If not see
: DW_EH_PE_aligned)
#endif

/* Disable -fpic and -fPIC since bsr.l _label@PLTPC
is unsupported by the assembler. */

#undef SUBTARGET_OVERRIDE_OPTIONS
#define SUBTARGET_OVERRIDE_OPTIONS \
do { \
if (flag_pic && !TARGET_PCREL) \
error ("%<-f%s%> is not supported on this target", \
(flag_pic > 1) ? "PIC" : "pic"); \
} while (0)


/* Install the __sync libcalls. */
#undef TARGET_INIT_LIBFUNCS
#define TARGET_INIT_LIBFUNCS m68k_init_sync_libfuncs
Expand Down

0 comments on commit cf877a4

Please sign in to comment.