gdb/testsuite: link some dwarf2 tests with nopie
[binutils-gdb.git] / gdb / testsuite / gdb.dwarf2 / dw2-bad-mips-linkage-name.c
index eaf1233b23f1ec663f469df6273abf0f29a4450f..1cb1da31a6f82e538161466227984c52723c2ea0 100644 (file)
@@ -1,6 +1,6 @@
 /* This testcase is part of GDB, the GNU debugger.
 
-   Copyright 2015-2016 Free Software Foundation, Inc.
+   Copyright 2015-2020 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
@@ -28,7 +28,7 @@ main (void)
 int
 f (char *x)
 {
-  asm (".global f_end_lbl\nf_end_lbl:");
+  asm ("f_label: .globl f_label");
   return 0;
 }
 
@@ -36,6 +36,6 @@ f (char *x)
 int
 g (char *x)
 {
-  asm (".global g_end_lbl\ng_end_lbl:");
+  asm ("g_label: .globl g_label");
   return 0;
 }