Print this page
switch aw & cw to target ARMv7

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/aw/aw.c
          +++ new/usr/src/tools/aw/aw.c
↓ open down ↓ 752 lines elided ↑ open up ↑
 753  753          /*
 754  754           * gas for 32-bit arm defaults to a much older version of the arm
 755  755           * architecture than we can really support. Because of that, we instead
 756  756           * opt to make sure that we set the minimum architecture to armv6k, the
 757  757           * minimum of what we actually support.
 758  758           */
 759  759  #if defined(AW_TARGET_arm)
 760  760          if (as64) {
 761  761                  return (error("no 64-bit aw target for arm"));
 762  762          } else {
 763      -                newae(as, "-march=armv6k");
 764      -                newae(as, "-mfpu=vfpv2");
      763 +                newae(as, "-march=armv7-a");
      764 +                newae(as, "-mfpu=vfpv3-d16");
 765  765                  newae(as, "-mfloat-abi=hard");
 766  766          }
 767  767  #endif
 768  768  
 769  769          if (srcfile == NULL)
 770  770                  return (usage("no source file(s) specified"));
 771  771          if (outfile == NULL)
 772  772                  outfile = "a.out";
 773  773          newae(as, "-o");
 774  774          newae(as, outfile);
↓ open down ↓ 43 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX