X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fsimple-object.h;h=70b1cf08baad2afa1577bd73cedccd4ed4a8f065;hb=d94297b3f49923c665fe45eaf3df1614b026d8ee;hp=b0395a7ee6fd9e1d10b1274c0d6b34819473a355;hpb=6f2750feaf2827ef8a1a0a5b2f90c1e9a6cabbd1;p=deliverable%2Fbinutils-gdb.git diff --git a/include/simple-object.h b/include/simple-object.h index b0395a7ee6..70b1cf08ba 100644 --- a/include/simple-object.h +++ b/include/simple-object.h @@ -1,5 +1,5 @@ /* simple-object.h -- simple routines to read and write object files - Copyright (C) 2010-2016 Free Software Foundation, Inc. + Copyright (C) 2010-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor, Google. This program is free software; you can redistribute it and/or modify it @@ -197,6 +197,17 @@ simple_object_write_to_file (simple_object_write *simple_object, extern void simple_object_release_write (simple_object_write *); +/* Copy LTO debug sections from SRC_OBJECT to DEST. + If RENAME is true, rename LTO debug section into debug section (i.e. + when producing final binary) and if it is false, keep the sections with + original names (when incrementally linking). + If an error occurs, return the errno value in ERR and an error string. */ + +extern const char * +simple_object_copy_lto_debug_sections (simple_object_read *src_object, + const char *dest, + int *err, int rename); + #ifdef __cplusplus } #endif