2006-10-25 06:49:21 +00:00
|
|
|
#source: ovl.s
|
ld/
* ld.texinfo (INSERT): Describe.
* ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
(INSERT_K, AFTER, BEFORE): Add as tokens.
(ifile_p1): Handle INSERT statements.
(saved_script_handle, force_make_executable): Move to..
* ldmain.c: ..here.
(previous_script_handle): New global var.
* ldmain.h (saved_script_handle, force_make_executable): Declare.
(previous_script_handle): Likewise.
* ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
* lexsup.c (parge_args <-T>): Set previous_script_handle.
* ldlang.c (lang_for_each_statement_worker): Handle insert statement.
(map_input_to_output_sections, print_statement): Likewise.
(lang_size_sections_1, lang_do_assignments_1): Likewise.
(insert_os_after): New function, extracted from..
(lang_insert_orphan): ..here.
(process_insert_statements): New function.
(lang_process): Call it.
(lang_add_insert): New function.
* ldlang.h (lang_insert_statement_enum): New.
(lang_insert_statement_type): New.
(lang_statement_union_type): Add insert_statement.
(lang_add_insert): Declare.
ld/testsuite/
* ld-spu/ovl.lnk: Delete overlay.
* ld-spu/ovl1.lnk: New file.
* ld-spu/ovl2.lnk: New file.
* ld-spu/ovl.d: Update.
* ld-spu/ovl2.d: Update.
2008-01-25 12:03:37 +00:00
|
|
|
#ld: -N -T ovl1.lnk -T ovl.lnk --emit-relocs
|
2007-03-23 00:48:05 +00:00
|
|
|
#objdump: -D -r
|
2006-10-25 06:49:21 +00:00
|
|
|
|
|
|
|
.*elf32-spu
|
|
|
|
|
|
|
|
Disassembly of section \.text:
|
|
|
|
|
|
|
|
00000100 <_start>:
|
2008-01-28 05:59:24 +00:00
|
|
|
.* ai \$1,\$1,-32
|
|
|
|
.* xor \$0,\$0,\$0
|
|
|
|
.* stqd \$0,0\(\$1\)
|
|
|
|
.* stqd \$0,16\(\$1\)
|
|
|
|
.* brsl \$0,.* <00000000\.ovl_call\.f1_a1>.*
|
|
|
|
.*SPU_REL16 f1_a1
|
|
|
|
.* brsl \$0,.* <00000000\.ovl_call\.f2_a1>.*
|
|
|
|
.*SPU_REL16 f2_a1
|
|
|
|
.* brsl \$0,.* <00000000\.ovl_call\.f1_a2>.*
|
|
|
|
.*SPU_REL16 f1_a2
|
|
|
|
#.* ila \$9,328 # 148
|
|
|
|
.* ila \$9,352 # 160
|
|
|
|
.*SPU_ADDR18 f2_a2
|
|
|
|
.* bisl \$0,\$9
|
|
|
|
.* ai \$1,\$1,32 # 20
|
|
|
|
.* br 100 <_start> # 100
|
|
|
|
.*SPU_REL16 _start
|
2006-10-25 06:49:21 +00:00
|
|
|
|
|
|
|
0000012c <f0>:
|
2008-01-28 05:59:24 +00:00
|
|
|
.* bi \$0
|
|
|
|
|
|
|
|
#00000130 <00000000\.ovl_call\.f1_a1>:
|
|
|
|
#.* brsl \$75,.* <__ovly_load>.*
|
|
|
|
#.*00 04 04 00.*
|
|
|
|
#
|
|
|
|
#00000138 <00000000\.ovl_call\.f2_a1>:
|
|
|
|
#.* brsl \$75,.* <__ovly_load>.*
|
|
|
|
#.*00 04 04 04.*
|
|
|
|
#
|
|
|
|
#00000140 <00000000\.ovl_call\.f1_a2>:
|
|
|
|
#.* brsl \$75,.* <__ovly_load>.*
|
|
|
|
#.*00 08 04 00.*
|
|
|
|
#
|
|
|
|
#00000148 <00000000\.ovl_call\.f2_a2>:
|
|
|
|
#.* brsl \$75,.* <__ovly_load>.*
|
|
|
|
#.*00 08 04 24.*
|
|
|
|
#
|
|
|
|
#00000150 <00000000\.ovl_call\.f4_a1>:
|
|
|
|
#.* brsl \$75,.* <__ovly_load>.*
|
|
|
|
#.*00 04 04 10.*
|
|
|
|
#
|
|
|
|
#00000158 <00000000.ovl_call.14:8>:
|
|
|
|
#.* brsl \$75,.* <__ovly_load>.*
|
|
|
|
#.*00 08 04 34.*
|
2007-09-25 08:27:39 +00:00
|
|
|
|
2007-03-23 00:48:05 +00:00
|
|
|
00000130 <00000000\.ovl_call\.f1_a1>:
|
2008-01-28 05:59:24 +00:00
|
|
|
.* ila \$78,1
|
|
|
|
.* lnop
|
|
|
|
.* ila \$79,1024 # 400
|
|
|
|
.* br .* <__ovly_load>.*
|
|
|
|
|
|
|
|
00000140 <00000000\.ovl_call\.f2_a1>:
|
|
|
|
.* ila \$78,1
|
|
|
|
.* lnop
|
|
|
|
.* ila \$79,1028 # 404
|
|
|
|
.* br .* <__ovly_load>.*
|
|
|
|
|
|
|
|
00000150 <00000000.ovl_call.f1_a2>:
|
|
|
|
.* ila \$78,2
|
|
|
|
.* lnop
|
|
|
|
.* ila \$79,1024 # 400
|
|
|
|
.* br .* <__ovly_load>.*
|
|
|
|
|
|
|
|
00000160 <00000000\.ovl_call\.f2_a2>:
|
|
|
|
.* ila \$78,2
|
|
|
|
.* lnop
|
|
|
|
.* ila \$79,1060 # 424
|
|
|
|
.* br .* <__ovly_load>.*
|
|
|
|
|
|
|
|
00000170 <00000000\.ovl_call\.f4_a1>:
|
|
|
|
.* ila \$78,1
|
|
|
|
.* lnop
|
|
|
|
.* ila \$79,1040 # 410
|
|
|
|
.* br .* <__ovly_load>.*
|
|
|
|
|
|
|
|
00000180 <00000000.ovl_call.14:8>:
|
|
|
|
.* ila \$78,2
|
|
|
|
.* lnop
|
|
|
|
.* ila \$79,1076 # 434
|
|
|
|
.* br .* <__ovly_load>.*
|
|
|
|
|
2006-10-25 06:49:21 +00:00
|
|
|
#...
|
|
|
|
[0-9a-f]+ <__ovly_return>:
|
2008-01-28 05:59:24 +00:00
|
|
|
#...
|
2006-10-25 06:49:21 +00:00
|
|
|
[0-9a-f]+ <__ovly_load>:
|
|
|
|
#...
|
|
|
|
[0-9a-f]+ <_ovly_debug_event>:
|
|
|
|
#...
|
|
|
|
Disassembly of section \.ov_a1:
|
|
|
|
|
|
|
|
00000400 <f1_a1>:
|
2008-01-28 05:59:24 +00:00
|
|
|
.* br .* <f3_a1>.*
|
|
|
|
.*SPU_REL16 f3_a1
|
2006-10-25 06:49:21 +00:00
|
|
|
|
|
|
|
00000404 <f2_a1>:
|
2008-01-28 05:59:24 +00:00
|
|
|
#.* ila \$3,336 # 150
|
|
|
|
.* ila \$3,368 # 170
|
|
|
|
.*SPU_ADDR18 f4_a1
|
|
|
|
.* bi \$0
|
2006-10-25 06:49:21 +00:00
|
|
|
|
|
|
|
0000040c <f3_a1>:
|
2008-01-28 05:59:24 +00:00
|
|
|
.* bi \$0
|
2006-10-25 06:49:21 +00:00
|
|
|
|
|
|
|
00000410 <f4_a1>:
|
2008-01-28 05:59:24 +00:00
|
|
|
.* bi \$0
|
2006-10-25 06:49:21 +00:00
|
|
|
\.\.\.
|
|
|
|
Disassembly of section \.ov_a2:
|
|
|
|
|
|
|
|
00000400 <f1_a2>:
|
2008-01-28 05:59:24 +00:00
|
|
|
.* stqd \$0,16\(\$1\)
|
|
|
|
.* stqd \$1,-32\(\$1\)
|
|
|
|
.* ai \$1,\$1,-32
|
|
|
|
.* brsl \$0,12c <f0> # 12c
|
|
|
|
.*SPU_REL16 f0
|
|
|
|
.* brsl \$0,130 <00000000\.ovl_call\.f1_a1> # 130
|
|
|
|
.*SPU_REL16 f1_a1
|
|
|
|
.* brsl \$0,430 <f3_a2> # 430
|
|
|
|
.*SPU_REL16 f3_a2
|
|
|
|
.* lqd \$0,48\(\$1\) # 30
|
|
|
|
.* ai \$1,\$1,32 # 20
|
|
|
|
.* bi \$0
|
2006-10-25 06:49:21 +00:00
|
|
|
|
|
|
|
00000424 <f2_a2>:
|
2008-01-28 05:59:24 +00:00
|
|
|
.* ilhu \$3,0
|
|
|
|
.*SPU_ADDR16_HI f4_a2
|
|
|
|
#.* iohl \$3,344 # 158
|
|
|
|
.* iohl \$3,384 # 180
|
|
|
|
.*SPU_ADDR16_LO f4_a2
|
|
|
|
.* bi \$0
|
2006-10-25 06:49:21 +00:00
|
|
|
|
|
|
|
00000430 <f3_a2>:
|
2008-01-28 05:59:24 +00:00
|
|
|
.* bi \$0
|
2006-10-25 06:49:21 +00:00
|
|
|
|
|
|
|
00000434 <f4_a2>:
|
2008-01-28 05:59:24 +00:00
|
|
|
.* br .* <f3_a2>.*
|
|
|
|
.*SPU_REL16 f3_a2
|
2006-10-25 06:49:21 +00:00
|
|
|
\.\.\.
|
|
|
|
Disassembly of section .data:
|
|
|
|
|
2008-01-28 05:59:24 +00:00
|
|
|
00000440 <_ovly_table-0x10>:
|
|
|
|
\.\.\.
|
2006-10-25 06:49:21 +00:00
|
|
|
44c: 00 00 00 01 .*
|
2008-01-28 05:59:24 +00:00
|
|
|
00000450 <_ovly_table>:
|
2006-10-25 06:49:21 +00:00
|
|
|
450: 00 00 04 00 .*
|
2008-01-28 05:59:24 +00:00
|
|
|
454: 00 00 00 20 .*
|
|
|
|
# 458: 00 00 03 40 .*
|
|
|
|
458: 00 00 03 70 .*
|
|
|
|
45c: 00 00 00 02 .*
|
|
|
|
460: 00 00 04 00 .*
|
|
|
|
464: 00 00 00 40 .*
|
|
|
|
# 468: 00 00 03 60 .*
|
|
|
|
468: 00 00 03 90 .*
|
|
|
|
46c: 00 00 00 02 .*
|
|
|
|
|
|
|
|
00000470 <_ovly_buf_table>:
|
|
|
|
\.\.\.
|
2006-10-25 06:49:21 +00:00
|
|
|
|
|
|
|
Disassembly of section \.toe:
|
|
|
|
|
2008-01-28 05:59:24 +00:00
|
|
|
00000480 <_EAR_>:
|
2006-10-25 06:49:21 +00:00
|
|
|
\.\.\.
|
|
|
|
Disassembly of section \.note\.spu_name:
|
|
|
|
|
|
|
|
.* <\.note\.spu_name>:
|
|
|
|
.*: 00 00 00 08 .*
|
|
|
|
.*: 00 00 00 0c .*
|
|
|
|
.*: 00 00 00 01 .*
|
|
|
|
.*: 53 50 55 4e .*
|
|
|
|
.*: 41 4d 45 00 .*
|
|
|
|
.*: 74 6d 70 64 .*
|
|
|
|
.*: 69 72 2f 64 .*
|
|
|
|
.*: 75 6d 70 00 .*
|