Mercurial > hg > CbC > CbC_gcc
comparison libiberty/simple-object-common.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 561a7518be6b |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* simple-object-common.h -- common structs for object file manipulation. | 1 /* simple-object-common.h -- common structs for object file manipulation. |
2 Copyright (C) 2010 Free Software Foundation, Inc. | 2 Copyright (C) 2010-2017 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of the libiberty library. | 4 This file is part of the libiberty library. |
5 Libiberty is free software; you can redistribute it and/or | 5 Libiberty is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
139 const char *(*write_to_file) (simple_object_write *sobj, int descriptor, | 139 const char *(*write_to_file) (simple_object_write *sobj, int descriptor, |
140 int *err); | 140 int *err); |
141 | 141 |
142 /* Release the private data for an simple_object_write. */ | 142 /* Release the private data for an simple_object_write. */ |
143 void (*release_write) (void *); | 143 void (*release_write) (void *); |
144 | |
145 /* Copy LTO debug sections. */ | |
146 const char *(*copy_lto_debug_sections) (simple_object_read *sobj, | |
147 simple_object_write *dobj, | |
148 int (*pfn) (const char **), | |
149 int *err); | |
144 }; | 150 }; |
145 | 151 |
146 /* The known object file formats. */ | 152 /* The known object file formats. */ |
147 | 153 |
148 extern const struct simple_object_functions simple_object_coff_functions; | 154 extern const struct simple_object_functions simple_object_coff_functions; |
149 extern const struct simple_object_functions simple_object_elf_functions; | 155 extern const struct simple_object_functions simple_object_elf_functions; |
150 extern const struct simple_object_functions simple_object_mach_o_functions; | 156 extern const struct simple_object_functions simple_object_mach_o_functions; |
157 extern const struct simple_object_functions simple_object_xcoff_functions; | |
151 | 158 |
152 /* Read SIZE bytes from DESCRIPTOR at file offset OFFSET into BUFFER. | 159 /* Read SIZE bytes from DESCRIPTOR at file offset OFFSET into BUFFER. |
153 Return non-zero on success. On failure return 0 and set *ERRMSG | 160 Return non-zero on success. On failure return 0 and set *ERRMSG |
154 and *ERR. */ | 161 and *ERR. */ |
155 | 162 |