Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Side by Side Diff: fusl/ldso/dlstart.c

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/ldso/BUILD.gn ('k') | fusl/ldso/dynlink.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <stddef.h> 1 #include <stddef.h>
2 #include "dynlink.h" 2 #include "dynlink.h"
3 3
4 #ifdef SHARED
5
6 #ifndef START 4 #ifndef START
7 #define START "_dlstart" 5 #define START "_dlstart"
8 #endif 6 #endif
9 7
10 #include "crt_arch.h" 8 #include "crt_arch.h"
11 9
12 #ifndef GETFUNCSYM 10 #ifndef GETFUNCSYM
13 #define GETFUNCSYM(fp, sym, got) do { \ 11 #define GETFUNCSYM(fp, sym, got) do { \
14 __attribute__((__visibility__("hidden"))) void sym(); \ 12 __attribute__((__visibility__("hidden"))) void sym(); \
15 static void (*static_func_ptr)() = sym; \ 13 static void (*static_func_ptr)() = sym; \
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 if (!IS_RELATIVE(rel[1], 0)) continue; 137 if (!IS_RELATIVE(rel[1], 0)) continue;
140 size_t *rel_addr = (void *)(base + rel[0]); 138 size_t *rel_addr = (void *)(base + rel[0]);
141 *rel_addr = base + rel[2]; 139 *rel_addr = base + rel[2];
142 } 140 }
143 #endif 141 #endif
144 142
145 stage2_func dls2; 143 stage2_func dls2;
146 GETFUNCSYM(&dls2, __dls2, base+dyn[DT_PLTGOT]); 144 GETFUNCSYM(&dls2, __dls2, base+dyn[DT_PLTGOT]);
147 dls2((void *)base, sp); 145 dls2((void *)base, sp);
148 } 146 }
149
150 #endif
OLDNEW
« no previous file with comments | « fusl/ldso/BUILD.gn ('k') | fusl/ldso/dynlink.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698