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

Side by Side Diff: third_party/yasm/patches/03_macho_objfmt_private.patch

Issue 6347060: Support the N_PEXT bit of the Mach-O object format.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « third_party/yasm/patched-yasm/modules/objfmts/macho/macho-objfmt.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Index: modules/objfmts/macho/macho-objfmt.c
2 ===================================================================
3 --- modules/objfmts/macho/macho-objfmt.c (revision 73577)
4 +++ modules/objfmts/macho/macho-objfmt.c (working copy)
5 @@ -922,7 +922,26 @@
6 }
7 /*printf("common symbol %s val %lu\n", name, yasm_intnum_get_uint(v al));*/
8 } else if (vis & YASM_SYM_GLOBAL) {
9 - n_type |= N_EXT;
10 + yasm_valparamhead *valparams =
11 + yasm_symrec_get_objext_valparams(sym);
12 +
13 + struct macho_global_data {
14 + unsigned long flag; /* N_PEXT */
15 + } data;
16 +
17 + data.flag = 0;
18 +
19 + if (valparams) {
20 + static const yasm_dir_help help[] = {
21 + { "private_extern", 0, yasm_dir_helper_flag_set,
22 + offsetof(struct macho_global_data, flag), N_PEXT },
23 + };
24 + yasm_dir_helper(sym, yasm_vps_first(valparams),
25 + yasm_symrec_get_decl_line(sym), help, NELEMS(he lp),
26 + &data, yasm_dir_helper_valparam_warn);
27 + }
28 +
29 + n_type |= N_EXT | data.flag;
30 }
31
32 localbuf = info->buf;
OLDNEW
« no previous file with comments | « third_party/yasm/patched-yasm/modules/objfmts/macho/macho-objfmt.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698