search for: ldscript

Displaying 20 results from an estimated 20 matches for "ldscript".

2012 Dec 31
5
[LLVMdev] [lld] Linker script findings.
Hi all, I have been investigating linker scripts and the functionality needed to support them in lld. I have attached my findings about the usage of ldscripts. My findings have been collected from: - Reading all the GNU ld manual sections about linker scripts. - Looking at the GNU ld and gold source code. - Digging through a couple embedded programming tutorials. - Reading through all of the linker scripts in the Linux kernel tree. - Other random sourc...
2013 Jan 02
0
[LLVMdev] [lld] Linker script findings.
...he Resolver is done and the atoms are handed to the ELF Writer to complete. -Nick On Dec 30, 2012, at 8:53 PM, Sean Silva wrote: > Hi all, I have been investigating linker scripts and the functionality > needed to support them in lld. I have attached my findings about the > usage of ldscripts. My findings have been collected from: > > - Reading all the GNU ld manual sections about linker scripts. > - Looking at the GNU ld and gold source code. > - Digging through a couple embedded programming tutorials. > - Reading through all of the linker scripts in the Linux kernel t...
2015 Oct 05
0
[PATCH 4/4] core: Move linker script in arch-agnostic dir
...core/{i386 => }/syslinux.ld (100%) diff --git a/core/Makefile b/core/Makefile index 26302fd..6fb6377 100644 --- a/core/Makefile +++ b/core/Makefile @@ -161,7 +161,7 @@ kwdhash.gen: keywords genhash.pl AUXLIBS = libisolinux.a libisolinux-debug.a libldlinux.a \ libpxelinux.a liblpxelinux.a -LDSCRIPT = $(SRC)/$(ARCH)/syslinux.ld +LDSCRIPT = $(SRC)/syslinux.ld %.elf: %.o $(LIBDEP) $(LDSCRIPT) $(AUXLIBS) $(LD) $(LDFLAGS) -Bsymbolic $(LD_PIE) -E --hash-style=gnu -T $(LDSCRIPT) -M -o $@ $< \ diff --git a/core/i386/syslinux.ld b/core/syslinux.ld similarity index 100% rename from core/i386/sy...
2007 Nov 12
5
Solaris build fix breaks Solaris
16396:055d98aa2dd0 almost works but not quite. LDFLAGS_DIRECT means we end up with: gld -melf_i386 -nostdlib -N -Ttext 0x100000 -o hvmloader.tmp hvmloader.o mp_tables.o util.o smbios.o 32bitbios_support.o acpi/acpi.a Specifying a linker script and asking for -nostdlib is obviously contradictory. Removing $(LDFLAGS_DIRECT) fixes the problem. regards john
2017 Feb 02
0
ldlinux.elf: Not enough room for program headers
...d that was proposed in Debian is: "Simple fix for build failure is to add --no-dynamic-linker to the linker command lines." +--- a/core/Makefile 2017-01-28 18:33:22.750959519 +0000 ++++ b/core/Makefile 2017-01-28 18:27:47.387981830 +0000 +@@ -165,7 +165,7 @@ + + %.elf: %.o $(LIBDEP) $(LDSCRIPT) $(AUXLIBS) + $(LD) $(LDFLAGS) -Bsymbolic $(LD_PIE) -E --hash-style=gnu -T $(LDSCRIPT) -M -o $@ $< \ +- --start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) --end-group \ ++ --start-group $(LIBS) $(subst $(*F).elf,lib$(*F).a,$@) --end-group --no-dynamic-linker \ + > $(@:.elf=.map) +...
2013 Jan 02
0
[LLVMdev] [lld] Linker script findings.
...ook into reading the Linker script which needs to be implemented. Thanks Shankar Easwaran On 12/30/2012 10:53 PM, Sean Silva wrote: > Hi all, I have been investigating linker scripts and the functionality > needed to support them in lld. I have attached my findings about the > usage of ldscripts. My findings have been collected from: > > - Reading all the GNU ld manual sections about linker scripts. > - Looking at the GNU ld and gold source code. > - Digging through a couple embedded programming tutorials. > - Reading through all of the linker scripts in the Linux kernel tr...
2020 Jul 28
1
[PATCH] mk/efi: add -znoseparate-code to LD_FLAGS for EFI builds
...tribute this fix in case it may be helpful to anyone. Thanks Johannes Signed-off-by: Johannes Frohnhofen <jf at daedalean.ai> --- mk/efi.mk.orig 2020-07-28 12:31:48.814356659 +0000 +++ mk/efi.mk 2020-07-28 12:37:22.292205578 +0000 @@ -37,7 +37,8 @@ CRT0 := $(LIBDIR)/crt0-efi-$(EFI_SUBARCH LDSCRIPT := $(LIBDIR)/elf_$(EFI_SUBARCH)_efi.lds LDFLAGS = -T $(SRC)/$(ARCH)/syslinux.ld -Bsymbolic -pie -nostdlib -znocombreloc \ - -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) $(CRT0) -E + -znoseparate-code -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) \ + $(CRT0) -E SFLAGS = $(GCCOPT)...
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 didn't mention. The goal of the write-up was to describe the primitive functionality that will be needed at the boundary between the language processor and the rest of LLD (although admittedly som...
2019 Jan 23
3
答复: How to add new arch for llvm-cov show?
Hi vedant, The program didn't pass the checking "OF->getArch() != Triple(Arch).getArch()" loadBinaryFormat in CoverageMappingReader.cpp and returned an error. It's because "OF->getArch()" returned null and "Triple(Arch).getArch()" returned XXXX(name of my arch). The returned value of " OF->getArch()" is decided by "
2019 Jan 24
2
答复: 答复: How to add new arch for llvm-cov show?
...e former one when using x86_64 llvm-cov so I thought it was MC provide this e_machine information to compiler). 2. New error was “Failed to load coverage: No coverage data found” since the compiler cannot get NamesSection(at loadBinaryFormat in CoverageMappingReader.cpp). I thought it was my ldscript problem because I put __llvm_prf_names, __llvm_prf_cnts, __llvm_prf_data and __llvm_prf_vnds inside .rodata section. Compiler checked .rodata but not things inside .rodata. What’s the right position to put these 4 __llvm_prf_* sections? Best, Ruobin. 发件人: vsk at apple.com [mailto:vsk at apple.com...
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
2019 Jan 25
2
答复: How to add new arch for llvm-cov show?
...t;e_?machine\>” lib … lib/Object/ELF.cpp: return getDynamicTagAsString(getHeader()->e_machine, Type); 2. New error was “Failed to load coverage: No coverage data found” since the compiler cannot get NamesSection(at loadBinaryFormat in CoverageMappingReader.cpp). I thought it was my ldscript problem because I put __llvm_prf_names, __llvm_prf_cnts, __llvm_prf_data and __llvm_prf_vnds inside .rodata section. Compiler checked .rodata but not things inside .rodata. What’s the right position to put these 4 __llvm_prf_* sections? I’m not sure what changed, exactly, between the point you enc...
2003 Aug 16
3
-STABLE problems / icmp6.c?
...building the temporary build tree -------------------------------------------------------------- rm -rf /usr/obj/usr/src/i386 mkdir -p /usr/obj/usr/src/i386/usr/bin mkdir -p /usr/obj/usr/src/i386/usr/lib/compat/aout mkdir -p /usr/obj/usr/src/i386/usr/games mkdir -p /usr/obj/usr/src/i386/usr/libdata/ldscripts mkdir -p /usr/obj/usr/src/i386/usr/libexec/elf mkdir -p /usr/obj/usr/src/i386/usr/sbin [...] ===> usr.bin/su rm -f .depend mkdep -f .depend -a -DKERBEROS5 -DLOGIN_CAP -DSKEY /usr/src/usr.bin/su/su.c echo su: /usr/obj/usr/src/i386/usr/lib/libc.a /usr/obj/usr/src/i386/usr/lib/libutil.a /us...
2013 Oct 09
0
[LLVMdev] [lld] Handling a whole bunch of readers
On Oct 9, 2013, at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org> wrote: > We have a whole bunch of readers(we would have some more too), and was thinking if we should have a vector of Readers, and have a function isMyFormat in each of them. > > Any reader that knows to handle, goes ahead and parses the file. > > On a side note, we currently use .objtxt as an figure
2003 Aug 13
1
Errors Building 4.8
...building the temporary build tree -------------------------------------------------------------- rm -rf /usr/obj/usr/src/i386 mkdir -p /usr/obj/usr/src/i386/usr/bin mkdir -p /usr/obj/usr/src/i386/usr/lib/compat/aout mkdir -p /usr/obj/usr/src/i386/usr/games mkdir -p /usr/obj/usr/src/i386/usr/libdata/ldscripts mkdir -p /usr/obj/usr/src/i386/usr/libexec/elf mkdir -p /usr/obj/usr/src/i386/usr/sbin mkdir -p /usr/obj/usr/src/i386/usr/share/misc mkdir -p /usr/obj/usr/src/i386/usr/share/dict mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devX100 mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devX100...
2013 Oct 09
7
[LLVMdev] [lld] Handling a whole bunch of readers
Hi, We have a whole bunch of readers(we would have some more too), and was thinking if we should have a vector of Readers, and have a function isMyFormat in each of them. Any reader that knows to handle, goes ahead and parses the file. On a side note, we currently use .objtxt as an figure out if the file is a YAML file or not. I have added FIXME's in the code, if we could some kind of
2013 Apr 10
3
windows compile R from source, where do I put the Tcl directory?
Hi, I am trying to compile R from source on Windows. I am following the instructions here 3.1 Building from source 3 Installing R under Windows file:///F:/ProgramFiles/R/R-2.15.3/doc/manual/R-admin.html It only says,? " The Tcl/Tk support files are contained in Rtools30.exe and? available as .zips from http://www.stats.ox.ac.uk/pub/Rtools.? Please make sure you install the right version:
2015 Sep 14
11
[PATCH 0/4] efi: Makefile improvement
From: Sylvain Gault <sylvain.gault at gmail.com> These few patches contain a few improvement about the Makefiles for EFI. Mainly, to rebuild the files when needed, and only when needed. The three shell scripts efi/{check,build,clean}-gnu-efi.sh disappeared and are now integrated as makefile recipes. You'll notice an argument ARFLAGS=rvU to the recursive make calls to gnu-efi. This is
2014 Mar 04
9
[LLVMdev] Upstreaming PNaCl's IR simplification passes
The PNaCl project has implemented various IR simplification passes that simplify LLVM IR by lowering complex features to simpler features. We'd like to upstream some of these IR passes to LLVM. We'd like to explore if this acceptable, and if so, how we should go about doing this. The immediate reason is that Emscripten is reusing PNaCl's IR passes for its new "fastcomp"
2013 Oct 28
5
FreeBSD PVH guest support
...s implementation. */ +struct init_ops init_ops = { + .parse_preload_data = native_parse_preload_data, + .early_delay_init = i8254_init, + .early_delay = i8254_delay, + .fetch_e820_map = native_fetch_e820_map, +#ifdef SMP + .mp_bootaddress = mp_bootaddress, +#endif +}; + /* * The file "conf/ldscript.amd64" defines the symbol "kernphys". Its value is * the physical address at which the kernel is loaded. @@ -216,6 +244,15 @@ struct mem_range_softc mem_range_softc; struct mtx dt_lock; /* lock for GDT and LDT */ +void +DELAY(int n) +{ + if (delay_tc(n)) + return; + + init_o...