From patchwork Mon Aug 25 23:32:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 2534 Received: (qmail 29215 invoked by alias); 25 Aug 2014 23:32:37 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 29205 invoked by uid 89); 25 Aug 2014 23:32:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oa0-f74.google.com Received: from mail-oa0-f74.google.com (HELO mail-oa0-f74.google.com) (209.85.219.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 25 Aug 2014 23:32:35 +0000 Received: by mail-oa0-f74.google.com with SMTP id eb12so2796661oac.5 for ; Mon, 25 Aug 2014 16:32:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:cc:date:message-id:mime-version :content-type; bh=eGbVG2DY8UVSjWCCzoo9S2ADYoMONS74nEvYazW3qds=; b=dFIJOlaUpVISsEjDs4yT+idlQ34ba4pYOCJGDRY1RFSB6p6ro3ueoslG+1HdJKWmIQ YEf9VgFQXrBpzmVbcXqGhwkqAEYnSni6L56bY/5khw3ikNhGxh8bFGQqNYjNR7YuvVZW Rqj+MXYO0q9287f2UyuK9G8xQ0SHnm9hvRPgpm61t96LoQkyyAT4PHHniqXZgFSWDAgn QqYT10vRAe4btA3wDIgJori5n2Y6BK8qPd4JUlAwuKL7AQu/tWSfM3d+IQkmaFrrmATC +kbCycmIKryYMIjnW9UYgu1m+Z2F3fOOpRpHoznTaLJuP0bof5scNqbdO8DAI/EVrMf6 uy8g== X-Gm-Message-State: ALoCoQmvtJRdxA7x5F0FU9R2Wa0E1wRj6FVK7oZ+kT8PIAMMODbugfU6xWy3N7ZOGfthNEVI5l7i X-Received: by 10.50.153.98 with SMTP id vf2mr12166669igb.5.1409009553794; Mon, 25 Aug 2014 16:32:33 -0700 (PDT) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id m14si90031yhm.7.2014.08.25.16.32.33 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Aug 2014 16:32:33 -0700 (PDT) Received: from ruffy.mtv.corp.google.com (ruffy.mtv.corp.google.com [172.17.128.44]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTPS id 54F0F5A44F9; Mon, 25 Aug 2014 16:32:33 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [PATCH] Add clang support to gdb_compile_shlib cc: dblaikie@gmail.com Date: Mon, 25 Aug 2014 16:32:32 -0700 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. This patch fixes several more failures in the testsuite when run with clang. gdb.base/ pending.exp fixsection.exp shlib-call.exp shreloc.exp solib-display.exp solib-nodir.exp solib-search.exp solib-symbol.exp 2014-08-25 Doug Evans * lib/gdb.exp (gdb_compile_shlib): Add support for clang. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 61e1614..fc9b1df 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2947,6 +2947,9 @@ proc gdb_compile_shlib {sources dest options} { "xlc-*" { lappend obj_options "additional_flags=-qpic" } + "clang-*" { + lappend obj_options "additional_flags=-fpic" + } "gcc-*" { if { !([istarget "powerpc*-*-aix*"] || [istarget "rs6000*-*-aix*"]