daily update
[external/binutils.git] / gdb / testsuite / gdb.dwarf2 / dw2-ranges.S
index 5fafa7a..62abb1b 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright 2007, 2008 Free Software Foundation, Inc.
+   Copyright 2007, 2008, 2009 Free Software Foundation, Inc.
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -19,6 +19,9 @@
    DW_AT_ranges as the linker could place both sections at arbitrary locations.
    */
 
+       /* Such directive is required by GAS for builds without `-g'.  */
+       .file   1 "dw2-ranges.S"
+
        /* Without this directive GAS will not emit DWARF2 unless we provide an
           instruction to assemble.  We want to avoid any instructions to
           remain architecture independent.  */
@@ -32,7 +35,10 @@ main:        .int    0
        .endfunc
        .size   main, . - main
 
-       .section        .text.func, "ax", @progbits
+       /* `.fini' section is here to make sure `dw2-ranges.S'
+          vs. `dw2-ranges2.S' overlap their DW_AT_ranges with each other.  */
+       .section        .fini, "ax", @progbits
+
        .globl  func
        .func   func
 func:  .int    0