From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 661333858C53 for ; Wed, 13 Apr 2022 16:29:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 661333858C53 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-126-N7zZigQ7Ov6u0bgrZartgQ-1; Wed, 13 Apr 2022 12:29:40 -0400 X-MC-Unique: N7zZigQ7Ov6u0bgrZartgQ-1 Received: by mail-wr1-f69.google.com with SMTP id p18-20020adf9592000000b00207bc12decbso233339wrp.21 for ; Wed, 13 Apr 2022 09:29:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=PBjSEGTFnwBBXs+ARgHg5DJ09OWNQbwUcayFK7a00zw=; b=b18jEXTGDfmdyZYs9t5DaXLdc02ZzkmGjTRdV5j6Nv75tbjglS5kTbPKSKsGE20Xe7 OYdsSBg+DC3RLKCfYHtTxMsGeVX5EbQ+DPhcCCm+xbt0p2BHD3gMOggmbYenfDVGRnSg 8nS7oxI6c6uY6ZX/tqwPET2KOb9W2ca4ojpClLM9sraAMl4t9f1poPdyL0Zq3GQ5eXqI RcLAMdmMKMpNWTHdn+BribdGX2cBq5PUA4oz045TwvmzmaX95xfh40ewvP4DIpPIKcja a9wJE9hFnmlv1dAUi/s+Mj8iwUOnp6vnmmdgscmGuRw/Q/QdDq1ZcyLqmnUz0u7xi5dV +iqg== X-Gm-Message-State: AOAM5333KkoXR/Bl8HzjFbWUJ2SQkuVC+lMWwn87/SUjEmSlHsDCDHIP T7SkS6HGiDtMbWhlsRKyEqm+6HodMCDQm3KQDbTOyv5FNe2Lfr7vrScNMB/Ydld2A8+I7t/Rduf aI+/Lr9Zz1YQF8J29qg== X-Received: by 2002:adf:e48b:0:b0:207:a28a:e43f with SMTP id i11-20020adfe48b000000b00207a28ae43fmr14988979wrm.543.1649867378945; Wed, 13 Apr 2022 09:29:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8Cx3jpJIekJggP8PiuPnI5POmKM+bNs/3xKV+WhQ1E7HgRocahu4fiHYQQjIIasfWhVCsIQ== X-Received: by 2002:adf:e48b:0:b0:207:a28a:e43f with SMTP id i11-20020adfe48b000000b00207a28ae43fmr14988973wrm.543.1649867378789; Wed, 13 Apr 2022 09:29:38 -0700 (PDT) Received: from [192.168.1.6] (adsl-2-solo-173-39.claranet.co.uk. [80.168.173.39]) by smtp.gmail.com with ESMTPSA id u7-20020a05600c19c700b0038cc9aac1a3sm3117565wmq.23.2022.04.13.09.29.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Apr 2022 09:29:38 -0700 (PDT) Message-ID: <111426e6-d728-6fc1-facf-63a0a1953897@redhat.com> Date: Wed, 13 Apr 2022 17:29:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 1/2] bfd: move the generation of the XCOFF .loader section after allocations To: "CHIGOT, CLEMENT" , "binutils@sourceware.org" Cc: "pro@helflym.eu" , Kavana N Bhat , Ayappan P2 References: From: Nick Clifton In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2022 16:29:42 -0000 Hi Clement, > bfd/ChangeLog: > > * coff-rs6000.c (_bfd_xcoff_put_ldsymbol_name): Write len in > ldinfo->strings instead of directly in the output_bfd. > * coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise. > * xcofflink.c (struct xcoff_link_hash_table): Remove ldrel_count > field. Add ldinfo field. > (xcoff_mark_symbol): Adjust to new ldinfo field. > (xcoff_mark): Likewise. > (bfd_xcoff_link_count_reloc): Likewise. > (xcoff_build_loader_section): Split into two functions: one that > build the loader section (this function) and one that only size > it... > (xcoff_size_loader_section): ... (this function). > (bfd_xcoff_size_dynamic_sections): Adapt to new ldinfo field. > Move the part where the dynamic sections are build to ... > (bfd_xcoff_build_dynamic_sections): ... this function. > * xcofflink.h: Add bfd_xcoff_build_dynamic_sections prototype. > > include/ChangeLog: > > * coff/xcoff.h (struct xcoff_loader_info): Add ldrel_count and > libpath fields. > > ld/ChangeLog: > > * emultempl/aix.em (_after_allocation): New function. Patch approved - please apply. Cheers Nick