mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-16 04:18:50 +00:00
* lib/ld-lib.exp (default_ld_link): Use ldflags from board description
file. (default_ld_simple_link): Likewise. (default_ld_compile): Use cflags from board description file.
This commit is contained in:
committed by
Nick Clifton
parent
35c081572f
commit
3046b3d356
@@ -1,3 +1,10 @@
|
|||||||
|
2013-12-13 Vidya Praveen <vidyapraveen@arm.com>
|
||||||
|
|
||||||
|
* lib/ld-lib.exp (default_ld_link): Use ldflags from board description
|
||||||
|
file.
|
||||||
|
(default_ld_simple_link): Likewise.
|
||||||
|
(default_ld_compile): Use cflags from board description file.
|
||||||
|
|
||||||
2013-12-13 Kuan-Lin Chen <kuanlinchentw@gmail.com>
|
2013-12-13 Kuan-Lin Chen <kuanlinchentw@gmail.com>
|
||||||
|
|
||||||
* lib/ld-lib.exp: Add NDS32 to list of targets that do not support
|
* lib/ld-lib.exp: Add NDS32 to list of targets that do not support
|
||||||
|
|||||||
@@ -199,6 +199,10 @@ proc default_ld_link { ld target objects } {
|
|||||||
set flags ""
|
set flags ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [board_info [target_info name] exists ldflags] {
|
||||||
|
append flags " [board_info [target_info name] ldflags]"
|
||||||
|
}
|
||||||
|
|
||||||
remote_file host delete $target
|
remote_file host delete $target
|
||||||
|
|
||||||
return [run_host_cmd_yesno "$ld" "$HOSTING_EMU $flags -o $target $objs $libs"]
|
return [run_host_cmd_yesno "$ld" "$HOSTING_EMU $flags -o $target $objs $libs"]
|
||||||
@@ -217,6 +221,10 @@ proc default_ld_simple_link { ld target objects } {
|
|||||||
set flags ""
|
set flags ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [board_info [target_info name] exists ldflags] {
|
||||||
|
append flags " [board_info [target_info name] ldflags]"
|
||||||
|
}
|
||||||
|
|
||||||
# If we are compiling with gcc, we want to add gcc_ld_flag to
|
# If we are compiling with gcc, we want to add gcc_ld_flag to
|
||||||
# flags. Rather than determine this in some complex way, we guess
|
# flags. Rather than determine this in some complex way, we guess
|
||||||
# based on the name of the compiler.
|
# based on the name of the compiler.
|
||||||
@@ -295,6 +303,10 @@ proc default_ld_compile { cc source object } {
|
|||||||
set flags "$flags $CFLAGS"
|
set flags "$flags $CFLAGS"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [board_info [target_info name] exists cflags] {
|
||||||
|
append flags " [board_info [target_info name] cflags]"
|
||||||
|
}
|
||||||
|
|
||||||
if [board_info [target_info name] exists multilib_flags] {
|
if [board_info [target_info name] exists multilib_flags] {
|
||||||
append flags " [board_info [target_info name] multilib_flags]"
|
append flags " [board_info [target_info name] multilib_flags]"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user