From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from imta-38.everyone.net (imta-36.everyone.net [216.200.145.36]) by sourceware.org (Postfix) with ESMTPS id 9F450386FC05 for ; Thu, 3 Jun 2021 19:42:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9F450386FC05 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=lcwb.coop Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=lcwb.coop Received: from pps.filterd (m0004960.ppops.net [127.0.0.1]) by imta-38.everyone.net (8.16.0.43/8.16.0.43) with SMTP id 153JbXQ3023192; Thu, 3 Jun 2021 12:41:58 -0700 X-Eon-Originating-Account: Tr5GpKVUdao2aXudG7bieftW7Y3WUQgLF27GBpnfl1PqW8sj8zlZLT1zHFHdwSfe X-Eon-Dm: m0116952.ppops.net Received: by m0116952.mta.everyone.net (EON-AUTHRELAY2 - a248a996) id m0116952.60b70713.20ff7; Thu, 3 Jun 2021 12:41:56 -0700 X-Eon-Sig: AQNpay9guTCEsLEnsgIAAAAD,cc17898903421f1fdbf59f131f687d39 X-Eip: qe7uPNqFFdPJlbckeQycN2bb9mMUF56Oct3gMpaEmQI Reply-To: rodney.m.bates@acm.org Subject: Re: Change in relocation of debug info To: Simon Marchi , rodney.m.bates@acm.org, gdb@sourceware.org References: <83239e44-c732-7dad-56b6-b12c98dc6795@polymtl.ca> <114a7bb8-5146-a895-1cdf-ee75a5d4f3ec@polymtl.ca> From: "Rodney M. Bates" Message-ID: <0f3eff38-295d-e482-a450-10be8ac67c72@lcwb.coop> Date: Thu, 3 Jun 2021 14:41:49 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <114a7bb8-5146-a895-1cdf-ee75a5d4f3ec@polymtl.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: uioUG1cCqyaN1ZETU_mvPpKEzbZNTK3u X-Proofpoint-GUID: uioUG1cCqyaN1ZETU_mvPpKEzbZNTK3u X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-06-03_12:2021-06-03, 2021-06-03 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 clxscore=1015 adultscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 mlxscore=0 bulkscore=0 impostorscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106030133 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2021 19:42:16 -0000 On 6/3/21 2:02 PM, Simon Marchi via Gdb wrote: > On 2021-06-03 2:54 p.m., Rodney M. Bates wrote: >> >> Thanks. Using -f=no-pie has gotten me going for now. My build process >> has been supplying -fPIC for ages, to the older gcc, so I don't fully >> understand why it wasn't happening all along, but this works for now. > > -fPIC is used at the compile step to produce code in the .o files that > _can_ be linked in a position-independent executable (or shared > library). But whether the output executable is position dependent or > not ultimately depends on the link step, whether -pie or -no-pie is > passed. And if neither are passed, it depends on the default setting of > the linker. That default setting was "no pie", but has changed to "pie" > pretty much everywhere in the last few years. Thanks. Now it makes sense. > > Simon > -- Rodney Bates rodney.m.bates@acm.org