From 9c235d703a8323ecb8807753759b856a068a3847 Mon Sep 17 00:00:00 2001 From: rearnsha Date: Sun, 14 Jan 2001 16:09:47 +0000 Subject: [PATCH] * config/arm/semi.h (ASM_SPEC): Pass -k to the assembler when compiling PIC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39011 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/semi.h | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2dcb26bfb58..9ada854997b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-01-14 Richard Earnshaw + + * config/arm/semi.h (ASM_SPEC): Pass -k to the assembler when + compiling PIC. + 2001-01-14 Kazu Hirata * config/h8300/h8300.c (get_shift_alg): Update comments. diff --git a/gcc/config/arm/semi.h b/gcc/config/arm/semi.h index 081b4c18663..d258944b477 100644 --- a/gcc/config/arm/semi.h +++ b/gcc/config/arm/semi.h @@ -1,6 +1,6 @@ /* Definitions of target machine for GNU compiler. ARM on semi-hosted platform - Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. - Contributed by Richard Earnshaw (richard.earnshaw@armltd.co.uk) + Copyright (C) 1994, 1995, 1996, 1997, 2001 Free Software Foundation, Inc. + Contributed by Richard Earnshaw (richard.earnshaw@arm.com) This file is part of GNU CC. @@ -39,8 +39,16 @@ Boston, MA 02111-1307, USA. */ #define SUBTARGET_EXTRA_ASM_SPEC #endif +/* The compiler supports PIC code generation, even though the binutils + may not. If we are asked to compile position independent code, we + always pass -k to the assembler. If it doesn't recognize it, then + it will barf, which probably means that it doesn't know how to + assemble PIC code. This is what we want, since otherwise tools + may incorrectly assume we support PIC compilation even if the + binutils can't. */ #ifndef ASM_SPEC #define ASM_SPEC "\ +%{fpic: -k} %{fPIC: -k} \ %{mbig-endian:-EB} \ %{mcpu=*:-m%*} \ %{march=*:-m%*} \ -- 2.11.4.GIT