OLD | NEW |
1 // Copyright (c) 2010 Google Inc. | 1 // Copyright (c) 2010 Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 function->size = 0x10; | 533 function->size = 0x10; |
534 function->parameter_size = 0; | 534 function->parameter_size = 0; |
535 m.AddFunction(function); | 535 m.AddFunction(function); |
536 | 536 |
537 m.Write(s, ALL_SYMBOL_DATA); | 537 m.Write(s, ALL_SYMBOL_DATA); |
538 string contents = s.str(); | 538 string contents = s.str(); |
539 | 539 |
540 EXPECT_STREQ("MODULE " MODULE_OS " arm " | 540 EXPECT_STREQ("MODULE " MODULE_OS " arm " |
541 MODULE_ID " " MODULE_NAME "\n" | 541 MODULE_ID " " MODULE_NAME "\n" |
542 "FUNC fff0 10 0 _thumb_xyz\n" | 542 "FUNC fff0 10 0 _thumb_xyz\n" |
543 "PUBLIC abc1 0 thumb_abc\n" | 543 "PUBLIC abc0 0 thumb_abc\n" |
544 "PUBLIC cc00 0 arm_func\n", | 544 "PUBLIC cc00 0 arm_func\n", |
545 contents.c_str()); | 545 contents.c_str()); |
546 } | 546 } |
OLD | NEW |