source: atk2-sc3_fl850f1l/arch/v850_gcc/conv2cs+.rb@ 117

Last change on this file since 117 was 117, checked in by ertl-ishikawa, 9 years ago

ATK2-SC3 1.3.2 FL850F1L(RH850F1L)依存部(GCC/GHS/CCRH)を追加

File size: 444 bytes
Line 
1#!ruby -Ke
2if ARGV.size != 1 then
3 puts "Argment Error!"
4 exit
5end
6
7while str = STDIN.gets
8 if /^.*\.data\s+[\dabcdef]+\s+[\dabcdef]+\s+([\dabcdef]+)\s+.*/ =~ str
9 command = 'v850-elf-objcopy -R .bss ' + ARGV[0]
10 puts command
11 system(command)
12 command = 'v850-elf-objcopy --change-section-vma .data=0x' + $1 + ' ' + ARGV[0]
13 puts command
14 system(command)
15 exit(0)
16 end
17end
Note: See TracBrowser for help on using the repository browser.