From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41008 invoked by alias); 5 Jan 2017 15:19:13 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 39816 invoked by uid 89); 5 Jan 2017 15:19:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?Yes, score=5.4 required=5.0 tests=AWL,BAYES_50,BODY_8BITS,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GARBLED_BODY,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=R_386_32, =a4,=e8, R_386_PC32, =e7=b2=be=e4=ba?= X-HELO: mail-io0-f196.google.com Received: from mail-io0-f196.google.com (HELO mail-io0-f196.google.com) (209.85.223.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Jan 2017 15:19:11 +0000 Received: by mail-io0-f196.google.com with SMTP id f73so63122656ioe.2 for ; Thu, 05 Jan 2017 07:19:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=catm67s+xrvl+IeY8zEoZ3mJNOWZ5ThvVbNc5dPeoqY=; b=PA8k2sCMpcvP6hGr2wDxeHeIhmeSwuytKxf3qTr2K0iMqcS2lCSJ1Npzxw1z1CiUjX XqY2x3Cp0kF+J37saPNgqb2QA9GAm89ztrEuQIswTIiMj5pI2wbUOdn9PZ2Xry3+1iUw EKgB2sRnWNwPWAOQ0OAtzfbGuwo1q2rAgMRVRAgqkIzAfPc7h9UNWxF+ZjzU0xlQ2CgE M0G2BgDsH1HcHQIbFpkmH7qFHvd3RDpli2jlQy54zdQRNCbA6p3WSxfSXcrMMQ8sy2Y5 vB0ca3S+chtNNjGKIc7LJCJaq2OpVADruakrS8fGtbbsXUBmdO3U68GABmtYVqZeqM2k 9j2A== X-Gm-Message-State: AIkVDXL2RssGMN8wTJ7suKYOHKeRST2pb1Rn/daS1odOKSD8GIk9qwcWN3AXUcly3GOkF4pQwYs77+dwFT71WQ== X-Received: by 10.107.159.68 with SMTP id i65mr59401729ioe.153.1483629550109; Thu, 05 Jan 2017 07:19:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.81.83 with HTTP; Thu, 5 Jan 2017 07:19:09 -0800 (PST) In-Reply-To: References: From: zet Date: Thu, 05 Jan 2017 15:19:00 -0000 Message-ID: Subject: Re: [gas question]relocate type of function call in i386 To: binutils@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00087.txt.bz2 Well reading the gas source code I have found the answer. binutils-source/gas/config/tc-i386.c output_insn() output_jump() reloc() When call the reloc() pass the 2ed argument :1, means it is PC-relative 2017-01-05 18:34 GMT+08:00 zet : > Hello, gas(GNU as) developers. > > I only talk about i386. > > When gas deal with this assembly code: > > --------------------------- > call function_name > --------------------------- > > In static NO PIC, the relocation type of function_name in call > instruction must be R_386_PC32? > Is it possible R_386_32 in gas(GNU as)? > > thx. > > -- > =E4=B8=9A=E7=B2=BE=E4=BA=8E=E5=8B=A4,=E8=8D=92=E4=BA=8E=E5=AC=89. --=20 =E4=B8=9A=E7=B2=BE=E4=BA=8E=E5=8B=A4,=E8=8D=92=E4=BA=8E=E5=AC=89.