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

Side by Side Diff: tests/pnacl_dynamic_loading/test_pso.c

Issue 352213002: PNaCl dynamic loading: Extend pnacl-translate to be able to translate PSOs (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Cleanup Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « tests/pnacl_dynamic_loading/nacl.scons ('k') | toolchain_build/toolchain_build_pnacl.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 static int var = 2345;
8
9 static int example_func(int *ptr) {
10 return *ptr + 1234;
11 }
12
13 static int *get_var(void) {
14 /* Test use of -fPIC by getting an address. */
15 return &var;
16 }
17
18 struct pso_root {
19 int (*example_func)(int *ptr);
20 int *(*get_var)(void);
21 };
22
23 struct pso_root __pnacl_pso_root = {
24 example_func,
25 get_var,
26 };
OLDNEW
« no previous file with comments | « tests/pnacl_dynamic_loading/nacl.scons ('k') | toolchain_build/toolchain_build_pnacl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698