mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-09 05:04:02 +00:00
Handle ports which do not support the --shared switch
This commit is contained in:
parent
8d5df71af0
commit
e6f12cf6cb
@ -1,3 +1,8 @@
|
||||
2004-06-21 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* ld-elf/frame.exp: Handle ports which do not support the --shared
|
||||
linker switch.
|
||||
|
||||
2004-06-18 Jan Beulich <jbeulich@novell.com>
|
||||
|
||||
* ld-elfvsb/main.c: Ensure visibility_def and visibility_func are
|
||||
|
@ -39,9 +39,13 @@ if { ![ld_assemble $as $srcdir/$subdir/tbss.s tmpdir/tbss.o ]
|
||||
|
||||
if { [ld_simple_link $ld tmpdir/frame.so "--shared tmpdir/frame.o tmpdir/tbss.o"] } {
|
||||
pass "$test1"
|
||||
} else {
|
||||
if [string match "*shared not supported*" $link_output] {
|
||||
unsupported "-shared is not supported by this target"
|
||||
} else {
|
||||
fail "$test1"
|
||||
}
|
||||
}
|
||||
|
||||
if ![ld_assemble $as $srcdir/$subdir/table.s tmpdir/table.o ] {
|
||||
unresolved "$test2"
|
||||
@ -50,6 +54,10 @@ if ![ld_assemble $as $srcdir/$subdir/table.s tmpdir/table.o ] {
|
||||
|
||||
if { [ld_simple_link $ld tmpdir/table.so "--shared tmpdir/table.o tmpdir/tbss.o"] } {
|
||||
pass "$test2"
|
||||
} else {
|
||||
if [string match "*shared not supported*" $link_output] {
|
||||
unsupported "-shared is not supported by this target"
|
||||
} else {
|
||||
fail "$test2"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user