* ld-scripts/cross1.t: Add .opd.
* ld-undefined/undefined.exp: Allow leading dot on sym names.
* lib/ld-lib.exp (default_ld_nm): Strip leading dots from syms.
+2002-01-31 Alan Modra <amodra@bigpond.net.au>
+
+ * ld-scripts/crossref.exp: Allow foo to have a leading dot.
+ * ld-scripts/cross1.t: Add .opd.
+ * ld-undefined/undefined.exp: Allow leading dot on sym names.
+ * lib/ld-lib.exp (default_ld_nm): Strip leading dots from syms.
+
2002-01-29 Chris Demetriou <cgd@broadcom.com>
* ld-mips-elf/emrelocs-eb.d: New file to test --embedded-relocs.
SECTIONS
{
.toc : { *(.toc) }
+ .opd : { *(.opd) }
.text : { tmpdir/cross1.o }
.data : { tmpdir/cross2.o }
}
fail $test1
} else {
verbose -log "$exec_output"
- if [regexp "prohibited cross reference from .* to `foo' in" $exec_output] {
+ if [regexp "prohibited cross reference from .* to `.*foo' in" $exec_output] {
pass $test1
} else {
fail $test1
}
}
-set mu "undefined reference to `this_function_is_not_defined'"
+set mu "undefined reference to `*this_function_is_not_defined'"
checkund $mu $testund
# ARM PE defaults to using stabs debugging, which we can't handle for
# Just doesn't work for PA ELF. No clue why.
setup_xfail "hppa*-*-*elf*"
-set ml "undefined.c:9: undefined reference to `this_function_is_not_defined'"
+set ml "undefined.c:9: undefined reference to `*this_function_is_not_defined'"
# With targets that use elf/dwarf2, such as the arm-elf and thumb-elf
# toolchains, the code in bfd/elf.c:_bfd_elf_find_nearest_line() is called
# in order to locate the file name/line number where the undefined
set file [open tmpdir/nm.out r]
while { [gets $file line] != -1 } {
verbose "$line" 2
- if [regexp "^(\[0-9a-fA-F\]+) \[a-zA-Z0-9\] (.+)$" $line whole value name] {
+ if [regexp "^(\[0-9a-fA-F\]+) \[a-zA-Z0-9\] \\.*(.+)$" $line whole value name] {
set name [string trimleft $name "_"]
verbose "Setting nm_output($name) to 0x$value" 2
set nm_output($name) 0x$value