similar to: [LLVMdev] [lld] Linker script findings.

Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] [lld] Linker script findings."

2013 Jan 02
0
[LLVMdev] [lld] Linker script findings.
Hi Sean, Thanks for providing us the information on the linker scripts. Linker scripts also use a wide variety of keywords like :- 1) SORT 2) ALIGN 3) OVERLAY Overlays are most commonly used in embedded applications to overlay one section over the other using a custom overlay manager. You might want to look at the ELFLayout changes to see what functionality is missing from that. The
2013 Jan 02
0
[LLVMdev] [lld] Linker script findings.
Sean, Thanks for doing this research and writing up that summary! The SECTION and MEMORY seem doable in lld as part of the ELF Writer. The one tricky part will be if the linker script defines symbols (e.g. __text_size), because those symbol names might be referenced by some object file atom. Thus they need an atom representation for lld's Resolver to see. So, the ELF Writer will need
2013 Jan 06
5
[LLVMdev] [lld] Linker script findings.
On Wed, Jan 2, 2013 at 12:04 PM, Shankar Easwaran <shankare at codeaurora.org> wrote: > You might want to look at the ELFLayout changes to see what functionality is > missing from that. > > The ELFLayoutOptions has a hook into reading the Linker script which needs > to be implemented. So, looking into it a bit, I think that ELFLayoutOptions is not the right place to parse the
2013 Jan 03
2
[LLVMdev] [lld] Linker script findings.
On Wed, Jan 2, 2013 at 2:53 PM, Nick Kledzik <kledzik at apple.com> wrote: > The SECTION and MEMORY seem doable in lld as part of the ELF > Writer. MEMORY and most aspects of SECTIONS are effectively syntax sugar and the rest of LLD doesn't need to even be aware of it; the ldscript language processor will desugar it. The same is true of many other linker script constructs that I
2013 Jan 07
0
[LLVMdev] [lld] Linker script findings.
Hi Sean, The hook to add symbols into the Reader is through Writer->addFiles function. I think still the linker script should be parsed by Writer. Also the linker script functionality is only needed by ELF and not anything else. It should be contained only within ELF. Thanks Shankar Easwaran On 1/6/2013 2:05 PM, Sean Silva wrote: > On Wed, Jan 2, 2013 at 12:04 PM, Shankar Easwaran
2015 Oct 05
0
[PATCH 2/4] Remove unused linker scripts
From: Sylvain Gault <sylvain.gault at gmail.com> Some linker scripts were splitted into i386 and x86_64 versions in commit d8eede3f2a360163235fad222a0190cd7c5bef38 but older scripts were left there. Signed-off-by: Sylvain Gault <sylvain.gault at gmail.com> --- core/syslinux.ld | 414 ------------------------------------------------ core/x86_64/syslinux.ld | 389
2015 Oct 05
7
[PATCH 0/4] Improve linker scripts
From: Sylvain Gault <sylvain.gault at gmail.com> These patches basically remove unused linker scripts and port a change that was made to an unused script. Those are to be applied on top of the gcc 5 bug fixes as they would conflict otherwise. Sylvain Gault (4): diag/mbr: fix dependency to linker script Remove unused linker scripts core: Make symbols defined in linker script HIDDEN
2020 Jul 28
1
[PATCH] mk/efi: add -znoseparate-code to LD_FLAGS for EFI builds
More recent versions of the GNU linker (>= 2.31) create a separate code "PT_LOAD" segment by default (as of https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=f6aec96dce1ddbd8961a3aa8a2925db2021719bb). Building syslinux EFI images with this -zseparate-code enabled creates broken EFI images, since efi/wrapper.c only copies the first PT_LOAD segment to the EFI. This patch adds
2015 Oct 05
0
[PATCH 4/4] core: Move linker script in arch-agnostic dir
From: Sylvain Gault <sylvain.gault at gmail.com> As there is no need for an x86_64 linker script, the i386 one can be put in the core directory directly. This partially revert commit d8eede3f2a360163235fad222a0190cd7c5bef38 which splitted several linker scripts into i386 and x86_64 versions. Signed-off-by: Sylvain Gault <sylvain.gault at gmail.com> --- core/Makefile |
2015 Apr 18
4
[LLVMdev] [lld] Linker cannot handle sections with non-unique names
Hi, FYI LLD cannot handle ELF sections with non-unique names. An object file with such sections can be generated by the Clang since r234143. I am not sure that Clang works absolutely correct but bfd linker works fine. Right now I do not have a time to investigate this problem. If nobody take, I will try to solve it later. Here is the reproduction script for x86_64 host: $ cat test.cc template
2018 Apr 02
0
LLD-linked binary segfaults at runtime on alpine linux
Can you add `--reproduce=repro` to lld command line? That generates repro.tar in your current directory which contains all input files. And then please compress and upload it somewhere so that we can take a look. On Mon, Apr 2, 2018 at 9:18 AM Andrew Kelley via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Alpine linux is a distribution that uses musl libc instead glibc. Here are
2018 Jul 17
0
[PATCH] x86_64: Reduce ld max-page-size option again
Building klibc with binutils 2.30 results in the following layout for klibc.so: Idx Name Size VMA LMA File off Algn 0 .text 0000d1ff 0000000000200200 0000000000200200 00000200 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 1 .rodata 000031af 0000000000300000 0000000000300000 00100000 2**5
2019 Jan 18
0
[klibc:master] x86_64: Reduce ld max-page-size option again
Commit-ID: 13b9b8c904408fdf4a72b9ab991a5a52749b4bcf Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=13b9b8c904408fdf4a72b9ab991a5a52749b4bcf Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sun, 15 Jul 2018 21:27:09 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 18 Jan 2019 03:10:14 +0000 [klibc] x86_64: Reduce ld
2018 Apr 02
1
LLD-linked binary segfaults at runtime on alpine linux
https://superjoe.s3.amazonaws.com/temp/repro.tar.xz On Mon, Apr 2, 2018 at 1:26 PM, Rui Ueyama <ruiu at google.com> wrote: > Can you add `--reproduce=repro` to lld command line? That generates > repro.tar in your current directory which contains all input files. And > then please compress and upload it somewhere so that we can take a look. > > > On Mon, Apr 2, 2018 at
2018 Apr 02
2
LLD-linked binary segfaults at runtime on alpine linux
Alpine linux is a distribution that uses musl libc instead glibc. Here are my steps to reproduce: On Alpine linux, download LLVM, Clang, LLD 6.0.0 from releases.llvm.org, and build them from source. $ clang -c hello_world.c $ ld.lld --gc-sections -m elf_x86_64 -o hello_world /usr/lib/gcc/x86_64-alpine-linux-musl/6.4.0/../../../../lib/Scrt1.o
2017 Feb 02
0
ldlinux.elf: Not enough room for program headers
The Syslinux package in Debian (6.03+dfsg-14) Failed To Build From Source. Is there a better solution than [1]? Is this issue only relevant for Debian? Or, can it be found in other distros / cases too? Is it still relevant for current upstream Syslinux git master? TL;DR: The original report is about: "ldlinux.elf: Not enough room for program headers" The workaround that was
2013 Jan 03
0
[LLVMdev] [lld] Linker script findings.
On Jan 2, 2013, at 5:51 PM, Sean Silva wrote: >> The one tricky part will be if the linker script defines symbols >> (e.g. __text_size), because those symbol names might be >> referenced by some object file atom. Thus they need an atom >> representation for lld's Resolver to see. So, the ELF Writer will need >> to make a first pass at the linker script and make
2015 Sep 29
10
[PATCH 0/2] Fixes for gcc 5
From: Sylvain Gault <sylvain.gault at gmail.com> TL;DR: The section aligment in linker scripts messed-up the memory mapping needed for the compression / decompression to work. The bug with gcc 5 is not trivial, I'll do my best to explain it here. Basically, there are two memory mappings of the code. One in "virtual memory", and one in "load memory". The one in
2015 Sep 29
0
[PATCH 0/2] Fixes for gcc 5
On Tue, Sep 29, 2015 at 12:46 AM, celelibi--- via Syslinux <syslinux at zytor.com> wrote: > From: Sylvain Gault <sylvain.gault at gmail.com> > > TL;DR: The section aligment in linker scripts messed-up the memory mapping > needed for the compression / decompression to work. > > The bug with gcc 5 is not trivial, I'll do my best to explain it here. > >
2008 Oct 13
0
Re : using predict() or fitted() from a model with offset; unsolved, included reproducible code
Thanks for your reply Mark, but no, using predict on the new data.frame does not help here. ? I had first thought that the probelm was due?the?explanatory variable (age)?and?the offset one (date) being?very similar (highly?correlated, I am trying to tease their effect apart, and hoped offset would help in this since I know the relationship with age already). But this appears not to be the case.