eae25ec577
ld: * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here. (output_bfd_hash_table_free_fn): New variable. (open_output): Save the _bfd_link_hash_table_free function for the output_bfd into output_bfd_hash_table_free_fn. * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn on link_info.hash. * ldlang.h (output_bfd_hash_table_free_fn): Declare. ld/testsuite: * ld-mmix/wrap1.d, ld-mmix/wrap1a.s, ld-mmix/wrap1b.s, ld-mmix/wrap1c.s, ld-mmix/wrap2.d, ld-mmix/wrap3.d, ld-mmix/wrap3a.s, ld-mmix/wrap3b.s, ld-mmix/wrap4.d: New tests.
21 lines
377 B
Makefile
21 lines
377 B
Makefile
#source: start.s
|
|
#source: wrap1a.s
|
|
#source: wrap1b.s
|
|
#source: wrap1c.s
|
|
#ld: -m elf64mmix --wrap deal
|
|
#as: -no-expand
|
|
#objdump: -d
|
|
|
|
.*: file format elf64-mmix
|
|
|
|
Disassembly of section \.text:
|
|
|
|
0+ <(_start|Main)>:
|
|
0: e3fd0001 setl \$253,0x1
|
|
4: f2000001 pushj \$0,8 <__wrap_deal>
|
|
|
|
0+8 <__wrap_deal>:
|
|
8: f0000001 jmp c <deal>
|
|
|
|
0+c <deal>:
|
|
c: fd000000 swym 0,0,0
|