Hello iant@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
9 years, 7 months ago
(2014-09-23 04:05:25 UTC)
#1
https://codereview.appspot.com/142470043/diff/80001/src/cmd/go/build.go File src/cmd/go/build.go (right): https://codereview.appspot.com/142470043/diff/80001/src/cmd/go/build.go#newcode2340 src/cmd/go/build.go:2340: // Remove any -fsanitize=foo flags. This isn't what I ...
9 years, 7 months ago
(2014-09-23 13:33:40 UTC)
#2
Wait, I am now puzzled. In a discussion with Russ he pointed out that along ...
9 years, 6 months ago
(2014-09-26 19:58:08 UTC)
#9
Message was sent while issue was closed.
Wait, I am now puzzled. In a discussion with Russ he pointed out that along
with -Wl,-r, we also pass -nostdlib.
Does this mean that the clang driver passes the sanitizer libraries to the
linker even if -nostdlib is being used? Because that is clearly and obviously
wrong. And if the clang driver did not do that, then we would not need this
code in the go tool.
On Fri, Sep 26, 2014 at 12:58 PM, <iant@golang.org> wrote: > Wait, I am now ...
9 years, 6 months ago
(2014-09-28 04:32:25 UTC)
#10
On Fri, Sep 26, 2014 at 12:58 PM, <iant@golang.org> wrote:
> Wait, I am now puzzled. In a discussion with Russ he pointed out that
> along with -Wl,-r, we also pass -nostdlib.
>
> Does this mean that the clang driver passes the sanitizer libraries to
> the linker even if -nostdlib is being used? Because that is clearly and
> obviously wrong. And if the clang driver did not do that, then we would
> not need this code in the go tool.
This was just fixed in clang driver:
https://code.google.com/p/address-sanitizer/issues/detail?id=344#c14
But that will be deployed on majority of user machines in like 5
years, much later than 1.4.
On Sat, Sep 27, 2014 at 9:32 PM, Dmitry Vyukov <dvyukov@google.com> wrote: > On Fri, ...
9 years, 6 months ago
(2014-09-28 14:59:01 UTC)
#11
On Sat, Sep 27, 2014 at 9:32 PM, Dmitry Vyukov <dvyukov@google.com> wrote:
> On Fri, Sep 26, 2014 at 12:58 PM, <iant@golang.org> wrote:
>> Wait, I am now puzzled. In a discussion with Russ he pointed out that
>> along with -Wl,-r, we also pass -nostdlib.
>>
>> Does this mean that the clang driver passes the sanitizer libraries to
>> the linker even if -nostdlib is being used? Because that is clearly and
>> obviously wrong. And if the clang driver did not do that, then we would
>> not need this code in the go tool.
>
>
> This was just fixed in clang driver:
> https://code.google.com/p/address-sanitizer/issues/detail?id=344#c14
> But that will be deployed on majority of user machines in like 5
> years, much later than 1.4.
Understood. But now we see that we are simply working around a bug,
not dealing with some complex interaction.
Ian
Issue 142470043: code review 142470043: cmd/go: strip -fsanitize= flags when building cgo object
(Closed)
Created 9 years, 7 months ago by dvyukov
Modified 9 years, 6 months ago
Reviewers: minux, gobot, iant
Base URL:
Comments: 1