Changeset cb7c685 in mainline
- Timestamp:
- 2011-05-19T02:30:26Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 10a530cc
- Parents:
- 53d9ee9
- Location:
- uspace/app/binutils
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/binutils/intrusive.sh
r53d9ee9 rcb7c685 31 31 # 32 32 # This shell script is reserved for intrusive patches (hacks) to binutils 33 # that are not possible to be done in a clean and isolated way or for34 # w hich doing so would require too much complexity.33 # that cannot be done in a clean and isolated way or for which doing so 34 # would require too much complexity. 35 35 # 36 36 … … 38 38 "do") 39 39 # Binutils plugin support is dependent on libdl.so library. 40 # By default, the plugin support is switched of for all40 # By default, the plugin support is switched off for all 41 41 # configure scripts of binutils. The only exception is configure 42 42 # script of ld 2.21 (and possibly above), where plugin support -
uspace/app/binutils/patch.awk
r53d9ee9 rcb7c685 32 32 # This script is reserved for transformation of native 33 33 # uspace/Makefile.common so it would be compatible with ported 34 # application and its operation could be intercepted.34 # application and its operations could be intercepted. 35 35 # 36 36 -
uspace/app/binutils/toolchain.sh
r53d9ee9 rcb7c685 57 57 case "$1" in 58 58 "gcc") 59 echo '#! /bin/bash' > 'gcc' 60 echo 'AS_LINK="`echo $* | grep '\'as-new\''`"' >> 'gcc' 61 echo 'LD_LINK="`echo $* | grep '\'ld-new\''`"' >> 'gcc' 62 echo 'LINK="`echo -n "$AS_LINK""$LD_LINK"`"' >> 'gcc' 63 echo 'if [ -n "$LINK" ]; then' >> 'gcc' 64 echo ' LD_ARGS="`echo $* | \' >> 'gcc' 65 echo ' sed '\'s/-O[^ ]*//g\'' | \' >> 'gcc' 66 echo ' sed '\'s/-W[^ ]*//g\'' | \' >> 'gcc' 67 echo ' sed '\'s/-g//g\'' | \' >> 'gcc' 68 echo ' sed '\'s/-l[^ ]*//g\'' | \' >> 'gcc' 69 echo ' sed '\'s/ [ ]*/ /g\''`"' >> 'gcc' 70 echo ' ld "$LD_ARGS"' >> 'gcc' 71 echo 'else' >> 'gcc' 59 ( 60 echo '#! /bin/bash' 61 echo 'AS_LINK="`echo $* | grep '\'as-new\''`"' 62 echo 'LD_LINK="`echo $* | grep '\'ld-new\''`"' 63 echo 'LINK="`echo -n "$AS_LINK""$LD_LINK"`"' 64 echo 'if [ -n "$LINK" ]; then' 65 echo ' LD_ARGS="`echo $* | \' 66 echo ' sed '\'s/-O[^ ]*//g\'' | \' 67 echo ' sed '\'s/-W[^ ]*//g\'' | \' 68 echo ' sed '\'s/-g//g\'' | \' 69 echo ' sed '\'s/-l[^ ]*//g\'' | \' 70 echo ' sed '\'s/ [ ]*/ /g\''`"' 71 echo ' ld "$LD_ARGS"' 72 echo 'else' 72 73 CFLAGS="`echo "$3" | \ 73 74 sed 's/-O[^ ]*//g' | \ … … 76 77 sed 's/-g//g' | \ 77 78 sed 's/ [ ]*/ /g'`" 78 echo " $2" "$CFLAGS" '$@' >> 'gcc' 79 echo 'fi' >> 'gcc' 79 echo " $2" "$CFLAGS" '$@' 80 echo 'fi' 81 ) > 'gcc' 80 82 chmod a+x 'gcc' 81 83 ;; 82 84 "as") 83 echo '#! /bin/bash' > 'as' 84 echo "$2" '$@' >> 'as' 85 ( 86 echo '#! /bin/bash' 87 echo "$2" '$@' 88 ) > 'as' 85 89 chmod a+x 'as' 86 90 ;; 87 91 "ar") 88 echo '#! /bin/bash' > 'ar' 89 echo "$2" '$@' >> 'ar' 92 ( 93 echo '#! /bin/bash' 94 echo "$2" '$@' 95 ) > 'ar' 90 96 chmod a+x 'ar' 91 97 ;; 92 98 "ranlib") 93 echo '#! /bin/bash' > 'ranlib' 94 echo "ar -s" '$@' >> 'ranlib' 99 ( 100 echo '#! /bin/bash' 101 echo "ar -s" '$@' 102 ) > 'ranlib' 95 103 chmod a+x 'ranlib' 96 104 ;; 97 105 "ld") 98 echo '#! /bin/bash' > 'ld' 99 echo "$2 -n $3 -T $4" '$@' "$5" >> 'ld' 106 ( 107 echo '#! /bin/bash' 108 echo "$2 -n $3 -T $4" '$@' "$5" 109 ) > 'ld' 100 110 chmod a+x 'ld' 101 111 ;; 102 112 "objdump") 103 echo '#! /bin/bash' > 'objdump' 104 echo "$2" '$@' >> 'objdump' 113 ( 114 echo '#! /bin/bash' 115 echo "$2" '$@' 116 ) > 'objdump' 105 117 chmod a+x 'objdump' 106 118 ;; 107 119 "objcopy") 108 echo '#! /bin/bash' > 'objcopy' 109 echo "$2" '$@' >> 'objcopy' 120 ( 121 echo '#! /bin/bash' 122 echo "$2" '$@' 123 ) > 'objcopy' 110 124 chmod a+x 'objcopy' 111 125 ;; 112 126 "strip") 113 echo '#! /bin/bash' > 'strip' 114 echo "$2" '$@' >> 'strip' 127 ( 128 echo '#! /bin/bash' 129 echo "$2" '$@' 130 ) > 'strip' 115 131 chmod a+x 'strip' 116 132 ;;
Note:
See TracChangeset
for help on using the changeset viewer.