* binutils-all/objcopy.exp: Reorder arguments for POSIXLY_CORRECT
systems.p
This commit is contained in:
parent
fd7832a662
commit
627fe3fb79
2 changed files with 9 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
|
||||||
|
|
||||||
|
* binutils-all/objcopy.exp: Reorder arguments for POSIXLY_CORRECT
|
||||||
|
systems.p
|
||||||
|
|
||||||
For older changes see ChangeLog-9303
|
For older changes see ChangeLog-9303
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ if ![regexp "start address (\[0-9a-fA-FxX\]+)" $got all origstart] then {
|
||||||
perror "objdump can not recognize bintest.o"
|
perror "objdump can not recognize bintest.o"
|
||||||
set origstart ""
|
set origstart ""
|
||||||
} else {
|
} else {
|
||||||
set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $tempfile ${copyfile}.srec --set-start 0x7654"]
|
set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec --set-start 0x7654 $tempfile ${copyfile}.srec"]
|
||||||
if ![string match "" $got] then {
|
if ![string match "" $got] then {
|
||||||
fail "objcopy --set-start"
|
fail "objcopy --set-start"
|
||||||
} else {
|
} else {
|
||||||
|
@ -192,7 +192,7 @@ if ![regexp "start address (\[0-9a-fA-FxX\]+)" $got all origstart] then {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $tempfile ${copyfile}.srec --adjust-start 0x123"]
|
set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec --adjust-start 0x123 $tempfile ${copyfile}.srec"]
|
||||||
if ![string match "" $got] then {
|
if ![string match "" $got] then {
|
||||||
fail "objcopy --adjust-start"
|
fail "objcopy --adjust-start"
|
||||||
} else {
|
} else {
|
||||||
|
@ -237,7 +237,7 @@ while {[regexp $headers_regexp $got all name size vma rest]} {
|
||||||
if {$low == "" || $origstart == ""} then {
|
if {$low == "" || $origstart == ""} then {
|
||||||
perror "objdump can not recognize bintest.o"
|
perror "objdump can not recognize bintest.o"
|
||||||
} else {
|
} else {
|
||||||
set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $tempfile ${copyfile}.srec --adjust-vma 0x123"]
|
set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec --adjust-vma 0x123 $tempfile ${copyfile}.srec"]
|
||||||
if ![string match "" $got] then {
|
if ![string match "" $got] then {
|
||||||
fail "objcopy --adjust-vma"
|
fail "objcopy --adjust-vma"
|
||||||
} else {
|
} else {
|
||||||
|
@ -271,7 +271,7 @@ if {$low == "" || $origstart == ""} then {
|
||||||
set got $rest
|
set got $rest
|
||||||
}
|
}
|
||||||
|
|
||||||
set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $tempfile ${copyfile}.srec $arg"]
|
set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $arg $tempfile ${copyfile}.srec"]
|
||||||
if ![string match "" $got] then {
|
if ![string match "" $got] then {
|
||||||
fail "objcopy --adjust-section-vma +"
|
fail "objcopy --adjust-section-vma +"
|
||||||
} else {
|
} else {
|
||||||
|
@ -291,7 +291,7 @@ if {$low == "" || $origstart == ""} then {
|
||||||
}
|
}
|
||||||
|
|
||||||
regsub -all "\\+4" $arg "=[expr $low + 4]" argeq
|
regsub -all "\\+4" $arg "=[expr $low + 4]" argeq
|
||||||
set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $tempfile ${copyfile}.srec $argeq"]
|
set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS -O srec $argeq $tempfile ${copyfile}.srec"]
|
||||||
if ![string match "" $got] then {
|
if ![string match "" $got] then {
|
||||||
fail "objcopy --adjust-section-vma ="
|
fail "objcopy --adjust-section-vma ="
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue