OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #ifndef INCLUDE_FLETCH_RELOCATION_API_H_ | 5 #ifndef INCLUDE_FLETCH_RELOCATION_API_H_ |
6 #define INCLUDE_FLETCH_RELOCATION_API_H_ | 6 #define INCLUDE_FLETCH_RELOCATION_API_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
11 #include "include/fletch_api.h" | 11 #include "include/fletch_api.h" |
(...skipping 18 matching lines...) Expand all Loading... |
30 // | 30 // |
31 // The address referred to by base has to be 4k aligned. | 31 // The address referred to by base has to be 4k aligned. |
32 // | 32 // |
33 // On success, the number of bytes written is returned. Otherwise, | 33 // On success, the number of bytes written is returned. Otherwise, |
34 // a negative value is returned. | 34 // a negative value is returned. |
35 FLETCH_EXPORT int FletchRelocateProgram(FletchProgram program, | 35 FLETCH_EXPORT int FletchRelocateProgram(FletchProgram program, |
36 void* target, | 36 void* target, |
37 uintptr_t base); | 37 uintptr_t base); |
38 | 38 |
39 #endif // INCLUDE_FLETCH_RELOCATION_API_H_ | 39 #endif // INCLUDE_FLETCH_RELOCATION_API_H_ |
OLD | NEW |