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

Side by Side Diff: modules/objfmts/macho/macho-objfmt.c

Issue 9666037: Merge https://github.com/yasm/yasm/commit/01ab853e68ef8aeded716d6f5b34895200f66a51 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/yasm/patched-yasm/
Patch Set: Created 8 years, 9 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 | « no previous file | 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
1 /* 1 /*
2 * Mac OS X ABI Mach-O File Format 2 * Mac OS X ABI Mach-O File Format
3 * 3 *
4 * Copyright (C) 2007 Henryk Richter, built upon xdf objfmt (C) Peter Johnson 4 * Copyright (C) 2007 Henryk Richter, built upon xdf objfmt (C) Peter Johnson
5 * 5 *
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 yasm_xfree(realname); 1491 yasm_xfree(realname);
1492 1492
1493 msd = yasm_section_get_data(retval, &macho_section_data_cb); 1493 msd = yasm_section_get_data(retval, &macho_section_data_cb);
1494 1494
1495 if (isnew || yasm_section_is_default(retval)) { 1495 if (isnew || yasm_section_is_default(retval)) {
1496 yasm_section_set_default(retval, 0); 1496 yasm_section_set_default(retval, 0);
1497 msd->segname = data.f_segname; 1497 msd->segname = data.f_segname;
1498 msd->sectname = f_sectname; 1498 msd->sectname = f_sectname;
1499 msd->flags = flags; 1499 msd->flags = flags;
1500 yasm_section_set_align(retval, align, line); 1500 yasm_section_set_align(retval, align, line);
1501 } else if (flags_override) 1501 } else if (flags_override) {
1502 yasm_warn_set(YASM_WARN_GENERAL, 1502 // align is the only value used from overrides.
1503 N_("section flags ignored on section redeclaration")); 1503 if (yasm_section_get_align(retval) != align) {
1504 yasm_warn_set(YASM_WARN_GENERAL,
1505 N_("section flags ignored on section redeclaration"));
1506 }
1507 }
1504 return retval; 1508 return retval;
1505 } 1509 }
1506 1510
1507 static /*@observer@*/ /*@null@*/ yasm_symrec * 1511 static /*@observer@*/ /*@null@*/ yasm_symrec *
1508 macho_objfmt_get_special_sym(yasm_object *object, const char *name, 1512 macho_objfmt_get_special_sym(yasm_object *object, const char *name,
1509 const char *parser) 1513 const char *parser)
1510 { 1514 {
1511 yasm_objfmt_macho *objfmt_macho = (yasm_objfmt_macho *)object->objfmt; 1515 yasm_objfmt_macho *objfmt_macho = (yasm_objfmt_macho *)object->objfmt;
1512 if (yasm__strcasecmp(name, "gotpcrel") == 0) { 1516 if (yasm__strcasecmp(name, "gotpcrel") == 0) {
1513 return objfmt_macho->gotpcrel_sym; 1517 return objfmt_macho->gotpcrel_sym;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 NULL, /* no directives */ 1619 NULL, /* no directives */
1616 NULL, /* no standard macros */ 1620 NULL, /* no standard macros */
1617 macho64_objfmt_create, 1621 macho64_objfmt_create,
1618 macho_objfmt_output, 1622 macho_objfmt_output,
1619 macho_objfmt_destroy, 1623 macho_objfmt_destroy,
1620 macho_objfmt_add_default_section, 1624 macho_objfmt_add_default_section,
1621 macho_objfmt_init_new_section, 1625 macho_objfmt_init_new_section,
1622 macho_objfmt_section_switch, 1626 macho_objfmt_section_switch,
1623 macho_objfmt_get_special_sym 1627 macho_objfmt_get_special_sym
1624 }; 1628 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698