[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [Chicken-users] Patch for FreeBSD link error
From: |
Evan Hanson |
Subject: |
Re: [Chicken-hackers] [Chicken-users] Patch for FreeBSD link error |
Date: |
Fri, 17 Jan 2014 16:47:18 +1300 |
Hi Jules,
(Patch CC'd to -hackers.)
On 2014-01-05 15:45, J Altfas wrote:
> That message looked awfully familiar! Sure enough, the issue had
> been discussed in this list in Feb 2013. At the time jcowan
> suggested there was a bug in clang: it didn't handle the -R and -z
> parameters in the same invocation.
>
> Looking into it, in fact the bug is in CHICKEN. Turns out the "-z"
> flag is really a linker vs. compiler flag, so the "-z origin"
> incantation needs to be passed to the linker. Here's a patch that
> fixes the problem:
Thanks for reporting this (again!). I was able to duplicate it, and it
seems "-z" should indeed be passed as a linker flag; attached is a `git
am`-formatted patch that fixes the issue (it actually implements Vitaly
Magerya's suggested fix from the original thread[1]). I don't see a
reason this shouldn't have been added after that first discussion, but I
think it's probably just because a patch never bubbled up up anywhere,
so thank you.
[1]: https://lists.gnu.org/archive/html/chicken-users/2013-02/msg00085.html
Cheers,
Evan
0001-Pass-z-origin-as-a-linker-option-for-deployed-binari.patch
Description: Text document
- Re: [Chicken-hackers] [Chicken-users] Patch for FreeBSD link error,
Evan Hanson <=