From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123684 invoked by alias); 20 Jun 2017 19:46:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 123108 invoked by uid 89); 20 Jun 2017 19:46:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=UD:Class, UD:New X-HELO: mail-ua0-f170.google.com Received: from mail-ua0-f170.google.com (HELO mail-ua0-f170.google.com) (209.85.217.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 20 Jun 2017 19:46:12 +0000 Received: by mail-ua0-f170.google.com with SMTP id g40so92410433uaa.3 for ; Tue, 20 Jun 2017 12:46:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=k7SGxQs3/kr6anhL4S84P3UwH/jP1JJJD4FZ9grgLWk=; b=iNTpCnAodaD2cwo1/o3K11WD9BYGI3ixwdRePWxuTC6bTjibCcYVOTRal31u+Cz/o5 uBi8cb6Ura6MwPP40XnVNPJkJBLMeZJqi6l5dB6o/D2L4j7C9PZhodlrdxJD/wAMVnyu esfPZczfGAKBK26Wk8l4dHJ2mKqsq4EPd0gw/V2d288sP9LDf3kIadQCvftWzXfdDYxU sT2NwdQdqutBiW9weunnVQ0N2ehFC2kI5Bu2b8/8EqAsKycsUBxhTmIPM7+EzmDwoTSK bqjZKrFdfuOGktYFCWg/3wO/9ymQ0xLpYrPiGJbOJLOTH3peS+MMdlYSIyWm+1+CNDyO lGmg== X-Gm-Message-State: AKS2vOxC//HBkIG0cTNWakRpGvDo68d7WJsFRwIRP9hk5VxkVUY06a1f XHCmtS6riUWA0uOuyr2C68jzpz15dnST X-Received: by 10.159.36.4 with SMTP id 4mr12960750uaq.84.1497987970790; Tue, 20 Jun 2017 12:46:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.69.29 with HTTP; Tue, 20 Jun 2017 12:46:10 -0700 (PDT) From: Uros Bizjak Date: Tue, 20 Jun 2017 19:46:00 -0000 Message-ID: Subject: [PATCH, alpha, go]: Introduce applyRelocationsALPHA To: "gcc-patches@gcc.gnu.org" Cc: "gofrontend-dev@googlegroups.com" , Ian Taylor Content-Type: multipart/mixed; boundary="001a113ad0bae08c090552698065" X-SW-Source: 2017-06/txt/msg01505.txt.bz2 --001a113ad0bae08c090552698065 Content-Type: text/plain; charset="UTF-8" Content-length: 221 This patch inroduces applyRelocationsALPHA to solve: FAIL: TestCgoConsistentResults FAIL: TestCgoPkgConfig FAIL: TestCgoHandlesWlORIGIN gotools errors. Bootstrapped and regression tested on alphaev68-linux-gnu. Uros. --001a113ad0bae08c090552698065 Content-Type: text/plain; charset="US-ASCII"; name="g.diff.txt" Content-Disposition: attachment; filename="g.diff.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j45zcitt0 Content-length: 2644 SW5kZXg6IGdvL2RlYnVnL2VsZi9maWxlLmdvCj09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT0KLS0tIGdvL2RlYnVnL2VsZi9maWxlLmdvCShyZXZpc2lvbiAyNDk0 MTgpCisrKyBnby9kZWJ1Zy9lbGYvZmlsZS5nbwkod29ya2luZyBjb3B5KQpA QCAtNjAyLDYgKzYwMiw4IEBACiAJCXJldHVybiBmLmFwcGx5UmVsb2NhdGlv bnNzMzkweChkc3QsIHJlbHMpCiAJY2FzZSBmLkNsYXNzID09IEVMRkNMQVNT NjQgJiYgZi5NYWNoaW5lID09IEVNX1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