Commit ce629d4d by Jakub Jelinek Committed by Jakub Jelinek

tramp.asm: Include config.h.

	* config/rs6000/tramp.asm: Include config.h.
	Check __PIC__ or __pic__ macro instead of SHARED.

From-SVN: r128106
parent 95b2e554
2007-09-05 Jakub Jelinek <jakub@redhat.com>
* config/rs6000/tramp.asm: Include config.h.
Check __PIC__ or __pic__ macro instead of SHARED.
2007-09-04 Laurynas Biveinis <laurynas.biveinis@gmail.com> 2007-09-04 Laurynas Biveinis <laurynas.biveinis@gmail.com>
* c-format.c: Include alloc-pool.h. * c-format.c: Include alloc-pool.h.
......
/* Special support for trampolines /* Special support for trampolines
* *
* Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc. * Copyright (C) 1996, 1997, 2000, 2007 Free Software Foundation, Inc.
* Written By Michael Meissner * Written By Michael Meissner
* *
* This file is free software; you can redistribute it and/or modify it * This file is free software; you can redistribute it and/or modify it
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
.file "tramp.asm" .file "tramp.asm"
.section ".text" .section ".text"
#include "ppc-asm.h" #include "ppc-asm.h"
#include "config.h"
#ifndef __powerpc64__ #ifndef __powerpc64__
.type trampoline_initial,@object .type trampoline_initial,@object
...@@ -105,7 +106,7 @@ FUNC_START(__trampoline_setup) ...@@ -105,7 +106,7 @@ FUNC_START(__trampoline_setup)
blr blr
.Labort: .Labort:
#if defined SHARED && defined HAVE_AS_REL16 #if (defined __PIC__ || defined __pic__) && defined HAVE_AS_REL16
bcl 20,31,1f bcl 20,31,1f
1: mflr r30 1: mflr r30
addis r30,r30,_GLOBAL_OFFSET_TABLE_-1b@ha addis r30,r30,_GLOBAL_OFFSET_TABLE_-1b@ha
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment