Displaying 9 results from an estimated 9 matches for "llvm_linker_is_gold".
2015 Jan 27
2
[LLVMdev] CMake: Gold linker detection
...Rafael,
I looked at the code which you pushed a while ago to check
for the gold linker.
Code below:
execute_process(
COMMAND ${CMAKE_C_COMPILER} -Wl,--version
OUTPUT_VARIABLE stdout
ERROR_QUIET)
if("${stdout}" MATCHES "GNU gold")
set(LLVM_LINKER_IS_GOLD ON)
endif()
I was trying to build runtime libraries (compiler-rt) for ARM using clang
which includes this code.
A while ago, I saw the error message until geek4civic fixed it with
ERROR_QUIET.
I usually specify my sysroot and tool chain(linker) through CFLAGS.
To fortify the logic...
2015 Jan 28
2
[LLVMdev] CMake: Gold linker detection
...Rafael,
I looked at the code which you pushed a while ago to check for the gold linker.
Code below:
execute_process(
COMMAND ${CMAKE_C_COMPILER} -Wl,--version
OUTPUT_VARIABLE stdout
ERROR_QUIET)
if("${stdout}" MATCHES "GNU gold")
set(LLVM_LINKER_IS_GOLD ON)
endif()
I was trying to build runtime libraries (compiler-rt) for ARM using “clang” which includes this code.
A while ago, I saw the error message until geek4civic fixed it with “ERROR_QUIET”.
I usually specify my sysroot and tool chain(linker) through CFLAGS.
To fortify the logic...
2017 Aug 24
3
Building LLVM's fuzzers
...RTY
5 LINK_FLAGS " -Wl,-dead_strip")
6 elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY
8 LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
9 elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD)
10 # Object files are compiled with -ffunction-data-sections.
11 # Versions of bfd ld < 2.23.1 have a bug in --gc-sections that breaks
12 # tools that use plugins. Always pass --gc-sections once we require
13 # a newer linker.
14 set_property(TARGET ${target_name} APPEND_STR...
2017 Aug 24
2
Building LLVM's fuzzers
...; -Wl,-dead_strip")
>> 6 *elseif*(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
>> 7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY
>> 8 LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
>> 9 *elseif*(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD)
>> 10 # Object files are compiled with -ffunction-data-sections.
>> 11 # Versions of bfd ld < 2.23.1 have a bug in --gc-sections that
>> breaks
>> 12 # tools that use plugins. Always pass --gc-sections once we require
>> 13 # a newer linker.
>>...
2017 Aug 24
4
Building LLVM's fuzzers
...t;> 6 *elseif*(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
>> >> 7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY
>> >> 8 LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
>> >> 9 *elseif*(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD)
>> >> 10 # Object files are compiled with -ffunction-data-sections.
>> >> 11 # Versions of bfd ld < 2.23.1 have a bug in --gc-sections that
>> >> breaks
>> >> 12 # tools that use plugins. Always pass --gc-sections once we
>> requ...
2017 Aug 24
3
Building LLVM's fuzzers
...MAKE_SYSTEM_NAME} MATCHES "SunOS")
>>>> >> 7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY
>>>> >> 8 LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
>>>> >> 9 *elseif*(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD)
>>>> >> 10 # Object files are compiled with -ffunction-data-sections.
>>>> >> 11 # Versions of bfd ld < 2.23.1 have a bug in --gc-sections that
>>>> >> breaks
>>>> >> 12 # tools that use plugins. Always pass --g...
2017 Aug 25
2
Building LLVM's fuzzers
...SunOS")
> >>>>> >> 7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY
> >>>>> >> 8 LINK_FLAGS " -Wl,-z
> -Wl,discard-unused=sections")
> >>>>> >> 9 *elseif*(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD)
> >>>>> >> 10 # Object files are compiled with -ffunction-data-sections.
> >>>>> >> 11 # Versions of bfd ld < 2.23.1 have a bug in --gc-sections
> that
> >>>>> >> breaks
> >>>>> >> 12...
2017 Sep 11
2
Building LLVM's fuzzers
...t;>>> >> 7 set_property(TARGET ${target_name} APPEND_STRING PROPERTY
>>> >>>>> >> 8 LINK_FLAGS " -Wl,-z
>>> -Wl,discard-unused=sections")
>>> >>>>> >> 9 *elseif*(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD)
>>> >>>>> >> 10 # Object files are compiled with -ffunction-data-sections.
>>> >>>>> >> 11 # Versions of bfd ld < 2.23.1 have a bug in --gc-sections
>>> that
>>> >>>>> >> breaks
>>&g...
2017 Aug 24
3
Building LLVM's fuzzers
George Karpenkov <ekarpenkov at apple.com> writes:
> OK so with Kuba’s help I’ve found the error: with optimization, dead
> stripping of produced libraries is enabled,
> which removes coverage instrumentation.
>
> However, this has nothing to do with the move to compiler-rt, so I’m
> quite skeptical on whether it has worked
> beforehand.
>
> A trivial fix is to do: