Linking errors when compiling with debug symbols
Bartosz Gołaszewski
bartekgola at gmail.com
Tue Aug 25 14:53:47 UTC 2015
2015-08-25 16:25 GMT+02:00 Denys Vlasenko <vda.linux at googlemail.com>:
> No, it's my fault.
> Without optimization, this code
>
> sockopt = offsetof(struct icmp6_hdr, icmp6_cksum);
> if (sockopt != 2)
> BUG_bad_offsetof_icmp6_cksum();
>
> will not optimize out the comparison. So the generated code
> will contain the call, even though it will never execute.
>
> Fixing it...
Thanks, commit 5b865deb fixed the issue.
--
Best regards,
Bartosz Golaszewski
More information about the busybox
mailing list