summaryrefslogtreecommitdiff
path: root/emulators/psim-freebsd/files/patch-hw_init.c
blob: e6481a876f8f9b6600c32c76fb55fcfe3043e735 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -r -u sim/ppc/hw_init.c /local2/gcc/ppc/gdb+dejagnu-20011007/sim/ppc/hw_init.c
--- sim/ppc/hw_init.c	Thu May 10 10:48:10 2001
+++ /local2/gcc/ppc/gdb+dejagnu-20011007/sim/ppc/hw_init.c	Fri Oct 12 11:31:51 2001
@@ -350,7 +350,8 @@
 	  ));
 
   /* If there is an .interp section, it means it needs a shared library interpreter.  */
-  if (strcmp(".interp", bfd_get_section_name(abfd, the_section)) == 0)
+  if (current_environment != OPERATING_ENVIRONMENT
+      && strcmp(".interp", bfd_get_section_name(abfd, the_section)) == 0)
     error("Shared libraries are not yet supported.\n");
 
   /* determine the devices access */