Trouble with dynamic executables
Andrew Duane
aduane at juniper.net
Wed May 18 13:16:55 UTC 2011
Thanks! I will try this patch out as soon as I get a chance. I had to repurpose my boot disk, but I can get it back today.
One question: I assume the new INITIAL_READONLY_SECTIONS statement is supposed to be one line? The .diff file shows it broken up into three lines. But I am betting that's just line wrap from some tool.
...................................
Andrew Duane
Juniper Networks
o +1 978 589 0551
m +1 603-770-7088
aduane at juniper.net
-----Original Message-----
From: owner-freebsd-mips at freebsd.org [mailto:owner-freebsd-mips at freebsd.org] On Behalf Of Oleksandr Tymoshenko
Sent: Tuesday, May 17, 2011 8:26 PM
To: freebsd-mips at freebsd.org
Subject: Re: Trouble with dynamic executables
On 15/04/2011 9:12 AM, Artem Belevich wrote:
> On Fri, Apr 15, 2011 at 5:26 AM, Andrew Duane<aduane at juniper.net> wrote:
>> I'm assuming it's a change to "ld", but it could be one of the directive scripts. I spent yesterday combing changes to the tree, and looking for any files that could have caused this. I came up empty, but then I'm not really sure what I'm looking for. Is there a toolchain person who might know? There's a good person here at Juniper, but he's on California time....
>
> Pass --verbose to linker and see what's in the linker script it uses.
> I suspect the issue may be somewhere there.
> You can then tweak the linker script, put .interp in the right place
> and pass the new script to linker with -T.
>
> That should get you by until proper toolchain fix is available.
This patch should fix it:
http://people.freebsd.org/~gonzo/patches/elf64.diff
This bug was introduced due to some change in ldscripts generation
logic. I'm not sure if it's proper fix. May be someone with better
toolchain knowledge will suggest something better.
_______________________________________________
freebsd-mips at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mips
To unsubscribe, send any mail to "freebsd-mips-unsubscribe at freebsd.org"
More information about the freebsd-mips
mailing list