This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] ld: Remove separate_code from ld_config_type
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Wed, 14 Feb 2018 12:23:20 -0800
- Subject: Re: [PATCH] ld: Remove separate_code from ld_config_type
- Authentication-results: sourceware.org; auth=none
- References: <20180214131256.GA28641@gmail.com>
On Wed, Feb 14, 2018 at 5:12 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> There are config.separate_code and link_info.separate_code. We should
> always use link_info.separate_code. This patch removes separate_code
> from ld_config_type.
>
> OK for master?
>
> H.J.
> ---
> PR ld/22845
> * ld.h (ld_config_type): Remove separate_code.
> * ldlang.c (ldlang_override_segment_assignment): Check
> link_info.separate_code instead of config.separate_code.
> * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse):
> Set link_info.separate_code instead of config.separate_code.
> * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse):
> Likewise.
> * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
> Likewise.
> * emultempl/mmixelf.em (gld${EMULATION_NAME}_before_parse):
> Likewise.
> * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse):
> Likewise.
Please ignore this. They mean different things.
--
H.J.