Browse Source

(L_dummy_main_reference): Reference the C symbol `main', not the linker
symbol `main'.

Miles Bader 22 năm trước cách đây
mục cha
commit
844eb437d6
1 tập tin đã thay đổi với 4 bổ sung5 xóa
  1. 4 5
      libc/sysdeps/linux/v850/crt0.S

+ 4 - 5
libc/sysdeps/linux/v850/crt0.S

@@ -51,9 +51,8 @@ C_ENTRY(start):
 	// should never get here....
 	jr	C_SYMBOL_NAME(abort)
 
-/* Stick in a dummy reference to main(), so that if an application
- * is linking when the main() function is in a static library (.a)
- * we can be sure that main() actually gets linked in */
+/* Stick in a dummy reference to `main', so that if an application
+   is linking when the `main' function is in a static library (.a)
+   we can be sure that `main' actually gets linked in.  */
 L_dummy_main_reference:
-	.long	main
-
+	.long	C_SYMBOL_NAME(main)