search for: mlinker

Displaying 20 results from an estimated 22 matches for "mlinker".

Did you mean: linker
2018 Jan 07
0
Fwd: LLD (macOS) usage?
I'm seeing something similar. clang is using HOST_LINK_VERSION, obtained from ld64, as the default for -mlinker-version. This causes Darwin.cpp to add the arguments you are seeing, but not handled by lld. Perhaps -fuse-ld should be considered in addition to -mlinker-version when adding these arguments. As a workaround, you can try passing -mlinker-version. Looks like anything < 133 will work, includin...
2018 Jan 07
1
LLD (macOS) usage?
...end that you use ld64 if you are intending to build MachO binaries. > On Jan 7, 2018, at 9:57 AM, Don Hinton via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I'm seeing something similar. > > clang is using HOST_LINK_VERSION, obtained from ld64, as the default for -mlinker-version. This causes Darwin.cpp to add the arguments you are seeing, but not handled by lld. Perhaps -fuse-ld should be considered in addition to -mlinker-version when adding these arguments. > > As a workaround, you can try passing -mlinker-version. Looks like anything < 133 will work...
2016 Apr 12
2
Availability of "-export_dynamic" when compiling with support for older OS X releases
Looking at tools/clang/lib/Driver/Tools.cpp , there's this fragment of code: if (Args.hasArg(options::OPT_rdynamic) && Version[0] >= 137) CmdArgs.push_back("-export_dynamic"); I built LLVM 3.4.2 from a OS X 10.11 "El Capitan" but specifying a fat build (386+x86_64) and requesting support back up to 10.6. It went fine, and the build passes all tests when run
2018 Jan 04
4
Fwd: LLD (macOS) usage?
Hi. I'm using LLVM 5.0.1 on macOS 10.12. I have a very simple program (program.c): int main() {} When attempting to compile with LLD, I get this output: $ clang -fuse-ld=lld program.c /opt/llvm/5.0.1/bin/ld.lld: error: unknown argument: -no_deduplicate /opt/llvm/5.0.1/bin/ld.lld: error: unknown argument: -dynamic /opt/llvm/5.0.1/bin/ld.lld: error: unknown argument: -arch
2018 Jan 07
1
Linker Option support for ELF
...reworked, because then adding the section sounds much nicer. > > Wouldn't a special section type trigger an "unrecognized section type" error for linkers that don't support it? Yeah, that is possible. Compatibility problem exists with ld64, and are handled by means of `-mlinker-version`. I don’t know how others feel about bringing that flag over to other platforms. We could force the use of a new section and bring along `-mlinker-version` and base it on that or silently drop the flags (sounds slightly unexpected). Or we could abuse the notes and not have to worry about...
2020 Nov 17
0
Add -fbinutils-version=
...lection for .gcc_except_table >From the review: jhenderson said: "This looks reasonable to me, but I don't know the surrounding code well enough to be comfortable LGTM-ing it. Sorry!" pcc said: "I agree with @MaskRay that this should be a binutils-specific option. The flag -mlinker-version seems to have been designed around macOS-specific assumptions i.e. there is a single linker (ld64) and that the linker and assembler are not version coupled. Having this option be binutils-specific seems like the best way to reflect the binutils-specific requirements." Both responses...
2018 Jan 07
0
Linker Option support for ELF
On Jan 6, 2018 12:05 PM, "Saleem Abdulrasool via llvm-dev" < llvm-dev at lists.llvm.org> wrote: On Jan 5, 2018, at 4:35 PM, Cary Coutant <ccoutant at gmail.com> wrote: In general I'm in favor of the proposal. Defining a generic way to convey some information from the compiler to the linker is useful, and it looks like it is just a historical reason that the ELF lacks
2018 Jan 06
2
Linker Option support for ELF
> On Jan 5, 2018, at 4:35 PM, Cary Coutant <ccoutant at gmail.com> wrote: > >>> In general I'm in favor of the proposal. Defining a generic way to convey >>> some information from the compiler to the linker is useful, and it looks >>> like it is just a historical reason that the ELF lacks the feature at the >>> moment. >>> >>>
2020 Jul 17
3
Switch to ld.bfd tombstone behavior by default
In short: Perhaps we should switch lld to the bfd-style tombstoning behavior for a release or two, letting users opt-in to testing with the new -1/-2 tombstoning in the interim, before switching to the new tombstone by default (while still having the flag to switch back when users find surprise places that can't handle the new behavior). In long: https://reviews.llvm.org/D81784 and follow-on
2020 Jul 17
2
Switch to ld.bfd tombstone behavior by default
...ermail/binutils/2020- >July/112415.html ). >> We may need a way to tell codegen about the used linker. >> >> pcc proposed -mbinutils-version= - This is nice in that some MC >> decisions related to -fno-integrated-as can use this option as well. >> jyknight proposed -mlinker-version= and syntax like -fuse-ld=bfd:2.34 >> >> This may get more complex if the generated object file want to be linked >> with more than one linker. This discussion probably deserves its own >> thread.     -- Alexey Lapshin   -------------- next part -------------- An HTM...
2020 Jul 21
3
Switch to ld.bfd tombstone behavior by default
...> >> We may need a way to tell codegen about the used linker. > > >> > > >> pcc proposed -mbinutils-version= - This is nice in that some MC > > >> decisions related to -fno-integrated-as can use this option as well. > > >> jyknight proposed -mlinker-version= and syntax like -fuse-ld=bfd:2.34 > > >> > > >> This may get more complex if the generated object file want to be linked > > >> with more than one linker. This discussion probably deserves its own > > >> thread. > > > > > >...
2020 Jul 20
2
Switch to ld.bfd tombstone behavior by default
...;July/112415.html ). > >> We may need a way to tell codegen about the used linker. > >> > >> pcc proposed -mbinutils-version= - This is nice in that some MC > >> decisions related to -fno-integrated-as can use this option as well. > >> jyknight proposed -mlinker-version= and syntax like -fuse-ld=bfd:2.34 > >> > >> This may get more complex if the generated object file want to be linked > >> with more than one linker. This discussion probably deserves its own > >> thread. > > > -- > Alexey Lapshin > _______...
2020 Jul 24
2
Switch to ld.bfd tombstone behavior by default
...gen about the used linker. > > > > >> > > > > >> pcc proposed -mbinutils-version= - This is nice in that some MC > > > > >> decisions related to -fno-integrated-as can use this option as > well. > > > > >> jyknight proposed -mlinker-version= and syntax like > -fuse-ld=bfd:2.34 > > > > >> > > > > >> This may get more complex if the generated object file want to be > linked > > > > >> with more than one linker. This discussion probably deserves its > own > > &g...
2020 Jul 24
2
Switch to ld.bfd tombstone behavior by default
...>>> > > > >> >>> > > > >> pcc proposed -mbinutils-version= - This is nice in that some MC >>> > > > >> decisions related to -fno-integrated-as can use this option as well. >>> > > > >> jyknight proposed -mlinker-version= and syntax like -fuse-ld=bfd:2.34 >>> > > > >> >>> > > > >> This may get more complex if the generated object file want to be linked >>> > > > >> with more than one linker. This discussion probably deserves its own &gt...
2020 Jul 25
2
Switch to ld.bfd tombstone behavior by default
...; > >>> > > > >> pcc proposed -mbinutils-version= - This is nice in that > some MC > > >>> > > > >> decisions related to -fno-integrated-as can use this option > as well. > > >>> > > > >> jyknight proposed -mlinker-version= and syntax like > -fuse-ld=bfd:2.34 > > >>> > > > >> > > >>> > > > >> This may get more complex if the generated object file want > to be linked > > >>> > > > >> with more than one linker. This...
2020 Jul 27
2
Switch to ld.bfd tombstone behavior by default
...t; > > >> > >>> > > > >> pcc proposed -mbinutils-version= - This is nice in that some MC > >>> > > > >> decisions related to -fno-integrated-as can use this option as well. > >>> > > > >> jyknight proposed -mlinker-version= and syntax like -fuse-ld=bfd:2.34 > >>> > > > >> > >>> > > > >> This may get more complex if the generated object file want to be linked > >>> > > > >> with more than one linker. This discussion probably deser...
2020 Jul 29
2
Switch to ld.bfd tombstone behavior by default
...gt; > >>> > > > >> pcc proposed -mbinutils-version= - This is nice in that some MC >> > >>> > > > >> decisions related to -fno-integrated-as can use this option as well. >> > >>> > > > >> jyknight proposed -mlinker-version= and syntax like -fuse-ld=bfd:2.34 >> > >>> > > > >> >> > >>> > > > >> This may get more complex if the generated object file want to be linked >> > >>> > > > >> with more than one linker. Thi...
2020 Jul 30
3
Switch to ld.bfd tombstone behavior by default
...>> pcc proposed -mbinutils-version= - This is nice in that >> some MC >> >> > >>> > > > >> decisions related to -fno-integrated-as can use this >> option as well. >> >> > >>> > > > >> jyknight proposed -mlinker-version= and syntax like >> -fuse-ld=bfd:2.34 >> >> > >>> > > > >> >> >> > >>> > > > >> This may get more complex if the generated object file >> want to be linked >> >> > >>> > >...
2020 Aug 05
2
Switch to ld.bfd tombstone behavior by default
...rsion= - This is nice in that >> >> some MC >> >> >> > >>> > > > >> decisions related to -fno-integrated-as can use this >> >> option as well. >> >> >> > >>> > > > >> jyknight proposed -mlinker-version= and syntax like >> >> -fuse-ld=bfd:2.34 >> >> >> > >>> > > > >> >> >> >> > >>> > > > >> This may get more complex if the generated object file >> >> want to be linked >>...
2020 Aug 05
3
Switch to ld.bfd tombstone behavior by default
...>> >> some MC > > >> >> >> > >>> > > > >> decisions related to -fno-integrated-as can use this > > >> >> option as well. > > >> >> >> > >>> > > > >> jyknight proposed -mlinker-version= and syntax like > > >> >> -fuse-ld=bfd:2.34 > > >> >> >> > >>> > > > >> > > >> >> >> > >>> > > > >> This may get more complex if the generated object file > > >&...