tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Linking C++



In article <287e13d5-fe43-9ef6-bcb3-da8a33090fe7%gmx.com@localhost>,
Kamil Rytarowski  <n54%gmx.com@localhost> wrote:
>-=-=-=-=-=-
>-=-=-=-=-=-
>
>On 24.10.2019 11:23, Kamil Rytarowski wrote:
>> On 24.10.2019 01:20, Robert Swindells wrote:
>>>
>>> Kamil Rytarowski <n54%gmx.com@localhost> wrote:
>>>> On 23.10.2019 19:28, Robert Swindells wrote:
>>>>>
>>>>> There is a restriction in our ld.elf_so that it can only load two
>>>>> segments.
>>>>
>>>> Please test the patch from:
>>>>
>>>> http://mail-index.netbsd.org/tech-toolchain/2019/01/06/msg003368.html
>>>
>>> The patch works for me.
>>>
>>> Would something like this get into NetBSD-9 ?
>>>
>> 
>> Unless we will get a patch with a better version, I plan to land it
>> after 2 weeks and pull-request to -9.
>> 
>> BTW. Please share your rebased version.
>> 
>
>Ping?
>
>This blocks LLD for NetBSD.. e.g.:
>
>/public/netbsd-root/tooldir.NetBSD-9.99.17-amd64/lib/gcc/x86_64--netbsd/8.3.0/../../../../x86_64--netbsd/bin/ld:
>/public/netbsd-root/tooldir.NetBSD-9.99.17-amd64/libexec/gcc/x86_64--netbsd/8.3.0/liblto_plugin.so:
>error loading plugin:
>/public/netbsd-root/tooldir.NetBSD-9.99.17-amd64/libexec/gcc/x86_64--netbsd/8.3.0/liblto_plugin.so:
>wrong number of segments (3 != 2)
>collect2: error: ld returned 1 exit status
>
>I intend to land our patch after 1 week into src/.

As I mentioned before this patch is very hacky. Can you at least try to
sync the FreeBSD code?

christos



Home | Main Index | Thread Index | Old Index