cc1: error: unrecognized command line option "-mfdpic"
Jin Guojun
jguojun at gmail.com
Thu Jun 25 02:31:35 UTC 2009
This option "-mfdpic" is shown in manual page for gcc 4.1 or later
-mfdpic
Select the FDPIC ABI, that uses function descriptors to represent
pointers to functions. Without any PIC/PIE-related options, it
implies -fPIE. With -fpic or -fpie, it assumes GOT entries and
small data are within a 12-bit range from the GOT base address;
with -fPIC or -fPIE, GOT offsets are computed with 32 bits.
With a
bfin-elf target, this option implies -msim.
However, tried all gcc 4.1.x, 4.2.x and 4.3.x with following test, and
no one of them accept this
option:
%: echo "#include <stdio.h>" | gcc43 -mfdpic - -E
cc1: error: unrecognized command line option "-mfdpic"
# 1 "<stdin>"
%: echo "#include <stdio.h>" | gcc43 -fdpic - -E
cc1: error: unrecognized command line option "-fdpic"
# 1 "<stdin>"
where "-dpic" option is a voild option.
Does anyone know why "-mfdpic" option is missing from gcc4.x in FreeBSD
distribution?
Is this due to some license issues?
If so, what is the other option to subtitute it?
Thanks,
-Jin
More information about the freebsd-questions
mailing list