Home | History | Annotate | Download | only in ld-mmix
      1 ;# Main file, x.s, with the program (_start) referring to two
      2 ;# linkonce functions fn and fn2.  The functions fn and fn2 are
      3 ;# supposed to be equivalent of C++ template instantiations; the
      4 ;# main file instantiates fn.  An exception-table-lookalike entry
      5 ;# refers to fn via a local label.  We use .gcc_except_table as we
      6 ;# can't be bothered to produce syntactically valid .eh_frame contents
      7 ;# and there's no option to turn off warning messages for invalid
      8 ;# contents.
      9 
     10  .text
     11  .global _start
     12 _start:
     13  .long fn
     14  .long fn2
     15 
     16  .section .gnu.linkonce.t.fn,"ax",@progbits
     17  .weak fn
     18  .type fn,@function
     19 fn:
     20 L:a:
     21  .long 1
     22  .long 2
     23 L:b:
     24  .size fn,L:b-L:a
     25 
     26  .section .gcc_except_table,"aw",@progbits
     27  .long 2
     28  .long L:a
     29  .long L:b-L:a
     30