cielavenir

arm-linux-androideabi specs

Aug 7th, 2011
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.08 KB | None | 0 0
  1. *asm:
  2. %{mbig-endian:-EB} %{mlittle-endian:-EL} %{mcpu=*:-mcpu=%*} %{march=*:-march=%*} %{mapcs-*:-mapcs-%*} %(subtarget_asm_float_spec) %{mthumb-interwork:-mthumb-interwork} %{msoft-float:-mfloat-abi=soft} %{mhard-float:-mfloat-abi=hard} %{mfloat-abi=*} %{mfpu=*} %(subtarget_extra_asm_spec)
  3.  
  4. *asm_debug:
  5. %{!g0:%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}} %{fdebug-prefix-map=*:--debug-prefix-map %*}
  6.  
  7. *asm_final:
  8.  
  9.  
  10. *asm_options:
  11. %{--target-help:%:print-asm-header()} %{v} %{w:-W} %{I*} %{save-temps:--save-temps} %a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
  12.  
  13. *invoke_as:
  14. %{!S:-o %|.s |
  15. as %(asm_options) %m.s %A }
  16.  
  17. *cpp:
  18. %(subtarget_cpp_spec) %{msoft-float:%{mhard-float: %e-msoft-float and -mhard_float may not be used together}} %{mbig-endian:%{mlittle-endian: %e-mbig-endian and -mlittle-endian may not be used together}} -I/opt/android-ndk/sources/cxx-stl/gnu-libstdc++/include -I/opt/android-ndk/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include
  19.  
  20. *cpp_options:
  21. %(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w} %{f*} %{g*:%{!g0:%{g*} %{!fno-working-directory:-fworking-directory}}} %{O*} %{undef} %{save-temps:-fpch-preprocess} %(esp_cpp_options)
  22.  
  23. *cpp_debug_options:
  24. %{d*}
  25.  
  26. *cpp_unique_options:
  27. %{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*&F*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{!MT:%{!MQ:%{MD|MMD:%{o*:-MQ %*}}}}}}} %{remap} %{g3|ggdb3|gstabs3|gcoff3|gxcoff3|gvms3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{fmudflap:-D_MUDFLAP -include mf-runtime.h} %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h} %{E|M|MM:%W{o*}}
  28.  
  29. *trad_capable_cpp:
  30. cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
  31.  
  32. *cc1:
  33. %{mno-android|tno-android-cc:%{profile:-p};:%{profile:-p} %{!mglibc:%{!muclibc:%{!mbionic: -mbionic}}} %{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fpic}}}}}
  34.  
  35. *cc1_options:
  36. %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*&ansi&trigraphs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{--help=*:--help=%(VALUE)} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{fmudflap|fmudflapth:-fno-builtin -fno-merge-constants} %{coverage:-fprofile-arcs -ftest-coverage}
  37.  
  38. *cc1plus:
  39. -fexceptions -frtti
  40.  
  41. *link_gcc_c_sequence:
  42. %{static:--start-group} %G %L %{static:--end-group}%{!static:%G}
  43.  
  44. *link_ssp:
  45. %{fstack-protector|fstack-protector-all:-lssp_nonshared -lssp}
  46.  
  47. *endfile:
  48. %{mno-android|tno-android-ld:%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s;:%{!shared: crtend_android%O%s}}
  49.  
  50. *link:
  51. %{!static:--eh-frame-hdr} %{mno-android|tno-android-ld:%{h*} %{version:-v} %{b} %{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic} %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker %{mglibc:/lib/ld-linux.so.3;:%{muclibc:/lib/ld-uClibc.so.0;:/system/bin/linker}}} -X %{mbig-endian:-EB} %{mlittle-endian:-EL} -m armelf_linux_eabi;:%{h*} %{version:-v} %{b} %{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic} %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker %{mglibc:/lib/ld-linux.so.3;:%{muclibc:/lib/ld-uClibc.so.0;:/system/bin/linker}}} -X %{mbig-endian:-EB} %{mlittle-endian:-EL} -m armelf_linux_eabi %{shared: -Bsymbolic}}
  52.  
  53. *lib:
  54. %{mno-android|tno-android-ld:%{pthread:-lpthread} %{shared:-lc} %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}};:%{pthread:-lpthread} %{shared:-lc} %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}} %{!static: -ldl}}
  55.  
  56. *mfwrap:
  57. %{static: %{fmudflap|fmudflapth: --wrap=malloc --wrap=free --wrap=calloc --wrap=realloc --wrap=mmap --wrap=munmap --wrap=alloca} %{fmudflapth: --wrap=pthread_create}} %{fmudflap|fmudflapth: --wrap=main}
  58.  
  59. *mflib:
  60. %{fmudflap|fmudflapth: -export-dynamic}
  61.  
  62. *link_gomp:
  63.  
  64.  
  65. *libgcc:
  66. -lgcc
  67.  
  68. *startfile:
  69. %{mno-android|tno-android-ld:%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s};:%{!shared: %{static: crtbegin_static%O%s;: crtbegin_dynamic%O%s}}}
  70.  
  71. *switches_need_spaces:
  72.  
  73.  
  74. *cross_compile:
  75. 1
  76.  
  77. *version:
  78. 4.4.3
  79.  
  80. *multilib:
  81. . !march=armv7-a !mthumb;armv7-a march=armv7-a !mthumb;thumb !march=armv7-a mthumb;armv7-a/thumb march=armv7-a mthumb;
  82.  
  83. *multilib_defaults:
  84. marm mlittle-endian mhard-float mno-thumb-interwork
  85.  
  86. *multilib_extra:
  87.  
  88.  
  89. *multilib_matches:
  90. march=armv7-a march=armv7-a;mthumb mthumb;
  91.  
  92. *multilib_exclusions:
  93.  
  94.  
  95. *multilib_options:
  96. march=armv7-a mthumb
  97.  
  98. *linker:
  99. collect2
  100.  
  101. *link_libgcc:
  102. -L/opt/android-ndk/sources/cxx-stl/gnu-libstdc++/libs/armeabi %D
  103.  
  104. *md_exec_prefix:
  105.  
  106.  
  107. *md_startfile_prefix:
  108.  
  109.  
  110. *md_startfile_prefix_1:
  111.  
  112.  
  113. *startfile_prefix_spec:
  114.  
  115.  
  116. *sysroot_spec:
  117. --sysroot=%R
  118.  
  119. *sysroot_suffix_spec:
  120.  
  121.  
  122. *sysroot_hdrs_suffix_spec:
  123.  
  124.  
  125. *esp_options:
  126.  
  127.  
  128. *esp_cpp_options:
  129.  
  130.  
  131. *subtarget_cpp_spec:
  132. %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}
  133.  
  134. *subtarget_extra_asm_spec:
  135. %{mabi=apcs-gnu|mabi=atpcs:-meabi=gnu;:-meabi=5} %{mcpu=arm8|mcpu=arm810|mcpu=strongarm*|march=armv4:--fix-v4bx}
  136.  
  137. *subtarget_asm_float_spec:
  138. %{mapcs-float:-mfloat}
  139.  
  140. *link_command:
  141. %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %{pie:-pie} %{fuse-ld=gold:%{fuse-ld=bfd:%e-fuse-ld=gold and -fuse-ld=bfd may not be used together}} %{fuse-ld=gold:-use-gold} %{fuse-ld=bfd:-use-ld}%X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(mfwrap) %(link_libgcc) %o %{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)} %(mflib) %{fprofile-arcs|fprofile-generate*|fpmu-profile-generate*|coverage:-lgcov} %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
Advertisement
Add Comment
Please, Sign In to add comment