Displaying 20 results from an estimated 20000 matches similar to: "Problems using Clang with LLD on embedded ARM"
2017 Feb 26
3
Problems using Clang with LLD on embedded ARM
Hi Sean
On Sun, Feb 26, 2017 at 5:10 AM, Sean Silva <chisophugis at gmail.com> wrote:
>
> For that triple, Clang seems to be calling into GCC driver
> (/usr/bin/arm-none-eabi-gcc) for linking and GCC doesn't recognize
> -fuse-ld=lld (supposedly -fuse-ld=gold selects ld.gold, -fuse-ld=bfd
> selects ld.bfd and you would expect -fuse-lld=lld to select ld.lld, but it
>
2016 Oct 28
3
[cfe-dev] LLD to be the default linker in Clang
On 28 October 2016 at 17:41, Hans Wennborg <hans at chromium.org> wrote:
> There's also -fuse-ld=
>
> That's how I usually do it.
Right, that gets rid of the override flag. Thanks! :)
But the arguments about the default and the cross-compilation error still stand.
cheers,
--renato
2016 Oct 28
0
[cfe-dev] LLD to be the default linker in Clang
On 28 October 2016 at 16:54, Renato Golin via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> On 28 October 2016 at 17:41, Hans Wennborg <hans at chromium.org> wrote:
>> There's also -fuse-ld=
>>
>> That's how I usually do it.
>
> Right, that gets rid of the override flag. Thanks! :)
>
> But the arguments about the default and the
2017 Jan 29
2
Linking Linux kernel with LLD
>At this point I'm able to link Linux kernel with LLD and objcopy doen't give me any errors.
>
>The versions are:
>
>Linux 4.10.0-rc5 (+ applied the patch from my previous message)
>LLD 5.0.0 (https://github.com/llvm-mirror/lld db83a5cc3968b3aac1dbe3270190bd3282862e74) (+ applied D28612)
>GNU objcopy (GNU Binutils) 2.27
>
>The problem is that the resulting
2016 Oct 28
6
[cfe-dev] LLD to be the default linker in Clang
On 28 October 2016 at 18:12, Ed Maste <emaste at freebsd.org> wrote:
> It should be possible to search the path for ld.lld first, then ld,
> but to me it seems like it will just be more confusing.
Hum, for me it would be less confusing. :)
GCC uses bfd by default, LLVM uses LLD. If you want to change, use -fuse-ld.
What would be confusing in this scenario?
> Clang's current
2020 Sep 01
2
[lld] [arm] Linker Cannot Set Custom Section Type to NOBITS
I am linking a program to be loaded in an ARM Cortex-M0+ based
microcontroller. In the linker script, I have a section allocated for the
stack which roughly looks like the following.
.stack : { . += __stack_size__; } > ram
Using the linker in the gcc arm toolchain, arm-none-eabi-ld, this section
is automatically set to type NOBITS, however, when linking with version
10.0.0 of ld.lld, the
2017 Mar 24
2
Linking android with lld: aarch64 target
On 23 March 2017 at 21:35, Peter Smith <peter.smith at linaro.org> wrote:
> Hello Min,
>
> This error message occurs when the linker would have to create a
> dynamic relocation in a read-only part of the program, which isn't
> usually allowed when making a position independent shared-library or
> position independent executable. In practice this usually means that
>
2020 Aug 25
9
[Proposal][Debuginfo] dsymutil-like tool for ELF.
Hi,
We propose llvm-dwarfutil - a dsymutil-like tool for ELF.
Any thoughts on this?
Thanks in advance, Alexey.
======================================================================
llvm-dwarfutil(Apndx A) - is a tool that is used for processing debug
info(DWARF)
located in built binary files to improve debug info quality,
reduce debug info size and accelerate debug info processing.
2020 Aug 03
2
LLD symbol types for defsym
I noticed that LLD doesn’t preserve the symbol type for a defsym directive. For example:
$ cat f.c
void f() {}
$ clang -c f.c
$ ld.lld -shared --defsym=g=f f.o
$ objdump -T a.out
DYNAMIC SYMBOL TABLE:
00000000000012a0 g DF .text 0000000000000006 f
00000000000012a0 g D .text 0000000000000000 g
f is marked as a function symbol, but g is not.
I recognize this is hard to do in the general
2018 Mar 26
2
Force clang to use ld.lld
Hi
While cross compiling on Mac
Host: Mac
Target: Linux on ArmV7
How can I force clang to use the non-system linker
But use llvm-lld (i.e. ld.lld) or any other non standard linker
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180326/d86e1601/attachment.html>
2020 Aug 26
3
[Proposal][Debuginfo] dsymutil-like tool for ELF.
On 26.08.2020 10:58, James Henderson wrote:
> In principle, this sounds reasonable to me. I don't know enough about
> dsymutil's interface to know whether it makes sense to try to make it
> multi-format compatible or not. If it doesn't I'm perfectly happy for
> a new tool to be added using the DWARFLinker library.
>
> Some more general thoughts:
> 1)
2019 Mar 11
2
Compiling for baremetal ARMv4 on Ubuntu Linux
Hello Christian,
I reran my script with a similar cmake command to yours. After the
build finished the following command from the build directory gave me:
find . -name \*builtins.a
./lib/clang/9.0.0/armv6m-none-eabi/lib/libclang_rt.builtins.a
./lib/clang/9.0.0/armv7m-none-eabi/lib/libclang_rt.builtins.a
./lib/clang/9.0.0/armv7em-none-eabi/lib/libclang_rt.builtins.a
I hope you see something like
2018 Jul 09
3
Failing compiler-rt LTO test
Hi,
I'm trying to build clang/LLVM and am hitting a test failure in
compiler-rt/test/safestack/lto.c.
I believe the issue is that we've configured clang to use ld.bfd as the
linker. ld.bfd has plugin support as described here:
https://llvm.org/docs/GoldPlugin.html
compiler-rt/test/lit.common.cfg isn't set up to know about ld.bfd:
elif config.host_os == 'Linux' and
2017 Jan 28
5
Linking Linux kernel with LLD
On Fri, Jan 27, 2017 at 1:31 PM, Rui Ueyama <ruiu at google.com> wrote:
> Sean,
>
> So as you noticed that linker script tokenization rule is not very trivial
> -- it is context sensitive. The current lexer is extremely simple and
> almost always works well. Improving "almost always" to "perfect" is not
> high priority because we have many more high
2017 Oct 04
2
Relocations used for PPC32 in non-PIC mode
Hello,
I am currently facing an issue at linking stage when compiling basic C code for an embedded PPC32 platform and linking with LLD. For external symbol linkage LLVM appears to use PLT which results in generating a R_PPC_PLTREL24 relocation, that is not support by LDD. Therefore even such a basic example cannot be built:
/* s.c */
int f() { return 0; }
/* t.c */
int f();
int _start() {
2016 Oct 19
2
Embedding LLD version to executables
On Tue, Oct 18, 2016 at 8:22 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
> > On Oct 18, 2016, at 6:44 PM, Rui Ueyama via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
> >
> > I'd like to make LLD embed version information so that we can determine
> if an executable was created by LLD and if that's the case which version of
> LLD.
>
2018 Mar 27
0
Force clang to use ld.lld
The option -fuse-ld is the closest option that I can think of. In its
most common form it accepts bfd, gold or lld, clang will then invoke
ld.bfd, ld.gold or ld.lld respectively. On many systems ld is a
symlink to an executable of the form ld.suffix. Alternatively the full
path to the linker can be given
-fuse-ld=/full/path/to/linker/executable
Peter
On 27 March 2018 at 00:40, Sumonto Ghosh via
2016 Mar 07
2
Linking the FreeBSD base system with lld -- status update
As I've mentioned before[1] I've been regularly attempting to build
the FreeBSD/amd64 base system with lld, in order to keep track of
progress and identify issues on an ongoing basis. As of last November
a 'buildword' (i.e., userland build) ran to completion, with several
workarounds applied to the FreeBSD base system. However, the result
did not actually work.
I'm pleased to
2017 Mar 15
4
Please dogfood LLD
On Wed, Mar 15, 2017 at 6:02 PM, Ed Maste <emaste at freebsd.org> wrote:
> Note that even if/when we get changes incorporated into libtool it
> will still take a long time for the change to appear in new releases
> of software packages using libtool. A downstream patch to the libtool
> package in various operating systems or distributions doesn't really
> help that much
2017 Jun 06
3
llvm-objcopy proposal
Fantastic! Thanks for all of the input! I'll be considering all of it going
forward. The plan right now is just to worry about ELF executables and
nothing else. I'm very sympathetic to the "llvm-objtool" change. If
everyone is cool with it I'll change the name in the next CL to
"llvm-objtool".
To start out I implemented a very basic ELF64LE specific bit of code.