This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][gold] Place sections like ".rela.dyn" according to linker scripts.

Hi Cary,

I've checked it. The things with these sections are definitely complicated
if we try to imitate ld's behavior in every single detail. Anyway, my patch
deals with only one particular case and, as far as I can see, doesn't change
anything for the sample from PR 20062. 

Best regards,
Igor Kudrin

PS. Have a great vacation!
From: Cary Coutant <>
Sent: Monday, July 4, 2016 1:24 PM
To: Igor Kudrin
Subject: Re: [PATCH][gold] Place sections like ".rela.dyn" according to linker scripts.

See also PR 20062. I need to think about this a bit, but I'm not going
to have time before I go on vacation. I'll be away for the next three
weeks, and I won't be able to respond while I'm away.


On Sun, Jul 3, 2016 at 11:16 PM, Igor Kudrin <> wrote:
> Hi,
> BTW, it seems like this patch solves PR14676.
> Best regards,
> Igor Kudrin
> ________________________________________
> From: <> on behalf of Igor Kudrin <>
> Sent: Saturday, July 2, 2016 12:04 AM
> To:; "Cary Coutant"
> Subject: [PATCH][gold] Place sections like ".rela.dyn" according to linker scripts.
> Hi,
> ld places internally created sections, like ".rela.dyn", according to
> output section descriptions in linker scripts even if input section
> descriptions for these output sections do not contain the corresponding
> patterns. I believe that gold should follow this behavior because it is
> intended to be a drop-in replacement for ld.
> What do you think?
> Best regards,
> Igor Kudrin
> ---
> gold/ChangeLog
>         *
>         (Sections_element::output_section_slot): New virtual method.
>         (Output_section_definition::output_section_slot): Likewise.
>         (Script_sections::output_section_name): Use output_section_slot
>         to find a slot for internally created sections.
>         * testsuite/ (script_test_13): New test.
>         * testsuite/ Regenerate.
>         * testsuite/script_test_13.c: New test source file.
>         * testsuite/ New test script.
>         * testsuite/script_test_13.t: New test linker script.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]