bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/23847] New warning on i586: -Werror=absolute-value


From: mliska at suse dot cz
Subject: [Bug ld/23847] New warning on i586: -Werror=absolute-value
Date: Tue, 13 Nov 2018 08:17:49 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23847

--- Comment #2 from Martin Liska <mliska at suse dot cz> ---
(In reply to Nick Clifton from comment #1)
> Created attachment 11389 [details]
> Proposed patch
> 
> Hi Martin,
> 
>   Please could you try out this proposed patch and let me know if it works
>   for you.
> 
> Cheers
>   Nick

Thanks Nick for patch. I can confirm it works for x86_64, but i586 is still
failing with:

[  193s] ../../bfd/elf32-arm.c: In function 'elf32_arm_final_link_relocate':
[  193s] ../../bfd/elf32-arm.c:10906:10: error: absolute value function 'labs'
given an argument of type 'bfd_signed_vma' {aka 'long long int'} but has
parameter of type 'long int' which may cause truncation of value
[-Werror=absolute-value]
[  193s] 10906 |  value = labs (relocation);
[  193s]       |          ^~~~
[  193s] mv -f .deps/elflink.Tpo .deps/elflink.Plo

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]