old-cross-binutils/ld/testsuite/ld-cris/pv32-1.d
Alan Modra d2667025dd ld/
* ldlang.h (lang_output_section_statement_type): Add after_end field.
	(lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
	(section_for_dot): Declare.
	* ldlang.c (lang_size_sections_1): Correct comment.
	(current_section): Move earlier.
	(current_assign, prefer_next_section): New static vars.
	(lang_do_assignments_1): Add found_end param.  Detect _end
	assignment to set found_end.  Set os->after_end.  Set above statics.
	(lang_do_assignments): Adjust lang_do_assignments_1 call.  Init
	vars.
	(section_for_dot): New function.
	(lang_set_startof): Don't make an absolute symbol.
	(lang_abs_symbol_at_beginning_of, lang_abs_symbol_at_end_of): Delete.
	* ldexp.c (new_rel_from_abs): Use section_for_dot.
	* emultempl/lnk960.em (symbol_at_beginning_of): New function.
	(symbol_at_end_of): Likewise.
	(lnk960_after_allocation): Use them.
	* scripttempl/elf.sc: Precede OTHER_GOT_SYMBOLS with . = .; and
	likewise before __bss_start.

ld/testsuite/
Update far too many tests.
2012-06-15 15:13:41 +00:00

40 lines
1.3 KiB
Makefile

#source: pv32.s
#as: --march=v32 --no-underscore --em=criself
#ld: -e here -m crislinux tmpdir/libdso-12.so
#objdump: -s -T
# Trivial test of linking a program to a v32 DSO.
.*: file format elf32-cris
DYNAMIC SYMBOL TABLE:
0+8021e DF \*UND\* 0+ expfn
0+82324 g DO \.bss 0+4 expobj
0+82324 g D \.bss 0+ __bss_start
0+80238 DF \*UND\* 0+ dsofn3
0+82324 g D \.got 0+ _edata
0+82340 g D \.bss 0+ _end
0+80264 g DF \.text 0+8 dsofn
Contents of section \.interp:
800d4 2f6c6962 2f6c642e 736f2e31 00 .*
#...
Contents of section \.rela\.dyn:
801e0 24230800 09020000 00000000 .*
Contents of section \.rela\.plt:
801ec 1c230800 0b010000 00000000 20230800 .*
801fc 0b040000 00000000 .*
Contents of section \.plt:
80204 84e26ffe 14230800 7e7a3f7a 04f26ffa .*
80214 bf09b005 00000000 00006ffe 1c230800 .*
80224 6ffabf09 b0053f7e 00000000 bf0ed4ff .*
80234 ffffb005 6ffe2023 08006ffa bf09b005 .*
80244 3f7e0c00 0000bf0e baffffff b005 .*
Contents of section \.text:
80252 b005bfbe caffffff b005bfbe dcffffff .*
80262 b0056fae 24230800 b0050000 .*
Contents of section \.dynamic:
#...
Contents of section \.got:
82310 70220800 00000000 00000000 2a020800 .*
82320 44020800 .*