[PATCH] ld: Remove separate_code from ld_config_type

H.J. Lu hjl.tools@gmail.com
Wed Feb 14 20:23:00 GMT 2018


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.



More information about the Binutils mailing list