search for: __start

Displaying 20 results from an estimated 49 matches for "__start".

Did you mean: _start
2019 Jan 18
0
[klibc:master] mips/mips64: simplify crt0 code
...ill <james.cowgill at mips.com> AuthorDate: Fri, 2 Mar 2018 08:33:02 -0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Wed, 2 Jan 2019 03:08:04 +0000 [klibc] mips/mips64: simplify crt0 code Various simplifications and adjustments to the MIPS crt0 files: - Use NESTED(__start, 0, ra) - this has no effect on the code, but is arguably more correct since we have no real stack frame. - Don't allocate extra stack space. We need none on 64-bit, and only 16 bytes on 32-bit. - Align the stack pointer in the (unlikely) event it is misaligned. - Don't load the gp regi...
2017 Sep 06
5
Using source-based code coverage on baremetal
...ttle while for me to figure out how to cleanly modify the build, and verify everything actually works on trunk.  It looks like there's a CMake variable COMPILER_RT_BAREMETAL_BUILD which is supposed to be turned on for this sort of environment? 2. Changing the compiler and compiler-rt to use __start and __end symbols to find the sections, rather than .init code.  This isn't strictly necessary, but our linker supports __start and __end, and this was easier than changing the baremetal image to handle a .init section.  See needsRuntimeRegistrationOfSectionRange in lib/Transforms/Instrume...
2020 Jun 02
2
LLD : __start_ and __end_ symbols for orphan sections
...an_dummy_anno_s { > void (*func)(void); >}; > >static void dummy_export_dbg_log_init_f (void) __attribute__ ((unused)); >static struct orphan_dummy_anno_s const > dummy_export_dbg_log_init_linker_set = > { dummy_export_dbg_log_init_f, }; >__asm__ (".globl " "__start_set_orphan_dummy_anno"); >__asm__ (".globl " "__stop_set_orphan_dummy_anno"); >static void const > *__set_orphan_dummy_anno_sym_dummy_export_dbg_log_init_linker_set > __attribute__ ((__section__ ("set_" "orphan_dummy_anno"))) > __attrib...
2020 Jun 02
2
LLD : __start_ and __end_ symbols for orphan sections
...t; <maskray at google.com> wrote: NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you recognize the sender and know the content is safe. On 2020-05-28, Moshtaghi, Alireza via llvm-dev wrote: >lld does not seem to create the __start and __end symbols for orphan sections. >I would like to keep my linker script as generic as possible so how can I tell lld to create these symbols without having to add them in the linker script? > >Thanks >A It works for me. SECTIONS { data : { *(data)...
2018 Mar 02
5
[PATCH 0/5] Various MIPS fixes
Hi, I noticed that klibc started crashing on 64-bit MIPS and in my quest to fix the bug I got a bit carried away and fixed a few other things as well. Here are various miscellaneous MIPS patches, although the first patch is the important one. Thanks, James *** BLURB HERE *** James Cowgill (5): mips64: compile with -mno-abicalls mips: use -Ttext-segment when linking shared library
2020 May 28
2
LLD : __start_ and __end_ symbols for orphan sections
lld does not seem to create the __start and __end symbols for orphan sections. I would like to keep my linker script as generic as possible so how can I tell lld to create these symbols without having to add them in the linker script? Thanks A -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lis...
1999 Jul 23
1
0.65 HPUX/AIX update
The current situation is as follows. AIX: * I still need f77 for linking. Using ld with the suggested flags gives a binary with `exec format error'. The problem seems to be with an unreferenced __start. * The floating point (finite|isnan) stuff is strange, but under control, I think. Plain cc works, gcc has a problem and seems to need having prototypes turned off for IEEE fp. (More below.) * Apart from that, make check goes all the way through at least for me under both cc/f77/make and...
2004 Jun 23
4
CRIS port of klibc
....o \ + libgcc/crisarith.o archclean: diff -urN ./klibc/arch/cris/crt0.S ../klibc-0.146-modified/klibc/arch/cris/crt0.S --- ./klibc/arch/cris/crt0.S Thu Jun 10 08:59:15 2004 +++ ../klibc-0.146-modified/klibc/arch/cris/crt0.S Wed Jun 23 09:21:00 2004 @@ -10,9 +10,9 @@ .text .balign 4 - .type __start,@function - .globl __start -__start: + .type _start,@function + .globl _start +_start: /* Save the address of the ELF argument array */ move.d $sp,$r10 /* Address of ELF arguments */ @@ -21,8 +21,8 @@ /* Set up a dummy stack frame to keep gcc from getting confused */ push $r11 - jump _...
2017 Apr 06
2
[LLD] RFC Range Thunks Implementation review for ARM and Mips
...ectionAlignments() > assignAddresses() > Script->processNonSectionCommands() > > With something like: > Script->assignAddresses() // Could be done multiple times > Script->processNonSectionCommands() // This should only be done once Correct. > In theory all the other __start and __end symbols could still be kept > separate if the linker script commands were created late, and in a > compatible way. I also don't think that this means removing > OutputSections::Sections just yet either? Probably not, but it might got away in the future. > I don't thi...
2015 Mar 06
0
[klibc:master] add-mips64-support-arch-mips64-specific
...+++ b/usr/klibc/arch/mips64/crt0.S @@ -0,0 +1,31 @@ +# +# arch/mips64/crt0.S +# +# Does arch-specific initialization and invokes __libc_init +# with the appropriate arguments. +# +# See __static_init.c or __shared_init.c for the expected +# arguments. +# + +#include <machine/asm.h> + +NESTED(__start, 64, sp) + daddiu sp,sp,-64 + sd zero, 32(sp) + + # Initialize gp + lui gp,%highest(_gp) # load highest "halfword" + daddiu gp,gp,%higher(_gp) # merge next "halfword" + dsll gp,gp,16 # shift by one halfword + daddiu gp,gp,%hi(_gp) # merge next "halfword" +...
1999 Jul 14
1
0.65 && AIX|HPUX
...eck fails in the contour example. * Plotting is broken (tickmarks go all the way thru). * IEEE fp stuff is strange (will look into this). * I still need f77 for linking. Using ld with the suggested flags gives a binary with `exec format error'. The problem seems to be with an unreferenced __start. * The basic add-ons seem to work, though. Status HPUX: * I can compile the main binary with c89/f77/make. * Compilation fails in eda (syntax error in etc/Makeconf). The problem disappears when the SHLIB target is commented ... but then building the shared lib fails. I tried xlispstat -Wl,-...
2005 Nov 25
1
Problems compiling R under AIX 4.3
...#39; make: *** [R] Error 2 I do not see where I use -dynamic and/or -static. If I use the IMB linker I got: with IBM linker (ld): $ ld -b32 -L/usr/local/lib -o R_X11.so dataentry.lo devX11.lo rotated.lo rbitmap.lo -lSM -lICE -lX11 -ljpeg -lpng -lz ld: 0711-327 WARNING: Entry point not found: __start ld: 0711-244 ERROR: No csects or exported symbols have been saved. Any help are welcome - Is there anybody with the same configuration (AIX 4.3,gcc,xlf95) and has build a working R ? Thanks Reinhard
2017 Oct 21
2
Finding the entry point function in a LLVM IR
Hi , Given the following LLVM IR : define i32 @foo(i32 %l) #0 { entry: %add = add nsw i32 %l, 3 ret i32 %add } ; Function Attrs: nounwind ssp uwtable define i32 @boo(i32 %k) #0 { entry: %call = call i32 @foo(i32 %k) ret i32 %call } ; Function Attrs: nounwind ssp uwtable define i32 @main() #0 { entry: %add = add nsw i32 1, 2 %add2 = add nsw i32 2, %add ret i32 %add2 } I want to be able
2017 Sep 11
2
Using source-based code coverage on baremetal
...for our embedded bare-metal target. Recently we implemented support for just the '-fprofile-instr-generate' option and the 'compiler-rt/lib/profile' sources, and added the following to our LD scripts: /* Append the LLVM profiling sections */ . = ALIGN(4); PROVIDE(__start___llvm_prf_cnts = .); *(__llvm_prf_cnts) PROVIDE(__stop___llvm_prf_cnts = .); . = ALIGN(4); PROVIDE(__start___llvm_prf_data = .); *(__llvm_prf_data) PROVIDE(__stop___llvm_prf_data = .); . = ALIGN(4); PROVIDE(__start___llvm_prf_names = .); *(__...
2012 Nov 29
9
[PATCH] xen: find a better location for the real-mode trampoline
...redhat.com> --- xen/arch/x86/boot/head.S | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/xen/arch/x86/boot/head.S b/xen/arch/x86/boot/head.S index 7efa155..1790462 100644 --- a/xen/arch/x86/boot/head.S +++ b/xen/arch/x86/boot/head.S @@ -78,16 +78,19 @@ __start: cmp $0x2BADB002,%eax jne not_multiboot - /* Set up trampoline segment 64k below EBDA */ - movzwl 0x40e,%eax /* EBDA segment */ - cmp $0xa000,%eax /* sanity check (high) */ - jae 0f - cmp $0x4000,%eax...
2017 Apr 05
4
[LLD] RFC Range Thunks Implementation review for ARM and Mips
Are you suggesting other linker jobs such as creating _end symbols to the linker script? The linker script support was implemented after we wrote the current Writer class, so it is somewhat "plugged in" to the Writer. It might not be the best design, and not many other options have been explored. So there might be room to improve code by moving work loads from the Writer to the
2017 Oct 23
2
Finding the entry point function in a LLVM IR
...t; The fact that main is the entry point is not known to LLVM (except in a > couple of places that special-case main, such as the internalise pass), > because it is an artefact of C/C++, not a generic property. On most *NIX > platforms, the real entry point for a program is something like __start or > _start, which then call main. In most compilation units, there is no > single entry point, because they do not contain the program entry point and > so can be entered by any externally visible function. > > It might help if you explained why you need this. > > David >...
2014 Mar 11
4
[PATCH] add mips64 support
...ll +++ b/usr/klibc/arch/mips64/crt0.S @@ -0,0 +1,25 @@ +# +# arch/mips/crt0.S +# +# Does arch-specific initialization and invokes __libc_init +# with the appropriate arguments. +# +# See __static_init.c or __shared_init.c for the expected +# arguments. +# + +#include <machine/asm.h> + +NESTED(__start, 32, sp) + subu sp, 32 + sw zero, 16(sp) + + lui gp, %hi(_gp) # Initialize gp + addiu gp, gp, _gp + + addiu a0, sp, 32 # Pointer to ELF entry structure + move a1, v0 # Kernel-provided atexit() pointer + + jal __libc_init + + END(__start) diff --git a/usr/klibc/arch/mips64/klibc.ld b/usr/klibc/a...
2007 Nov 15
1
imap process consuming 100% CPU (Dovecot 1.0.3)
...io_loop_destroy(&ioloop); > > 294 lib_deinit(); > > 295 > > 296 return 0; > > 297 } > > (dbx) dump > > main(argc = 1, argv = 0x2ff22b50, envp = 0x2ff22b58), line 290 in "main.c" > > (dbx) up > > __start() at 0x100001d8 > > (dbx) list > > no source file > > (dbx) dump > > __start() at 0x100001d8 > > (dbx) cont > > > > execution completed > > (dbx) quit > > $ > > > > -- > ==== > Stewart Dean, Unix System Admin, Henderson Co...
2003 Jul 06
10
[Bug 585] sshd core dumping on IRIX 6.5.18 with VerifyReverseMapping enabled
http://bugzilla.mindrot.org/show_bug.cgi?id=585 ------- Additional Comments From dtucker at zip.com.au 2003-07-07 00:32 ------- dmalloc (http://dmalloc.com/) claims to work on IRIX. It's likely to increase the CPU and memory load, though. I've built with dmalloc on Linux thusly: LDFLAGS=-ldmalloc ./configure && make eval `dmalloc -l /path/to/log high` ./sshd [options]