Do not embed ident(1) strings in object code.
authormiod <miod@openbsd.org>
Thu, 1 Sep 2022 05:49:04 +0000 (05:49 +0000)
committermiod <miod@openbsd.org>
Thu, 1 Sep 2022 05:49:04 +0000 (05:49 +0000)
ok daniel@ deraadt@ jca@

lib/libelf/_elftc.h

index 09bc0e4..01913ee 100644 (file)
@@ -23,7 +23,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $Id: _elftc.h,v 1.2 2021/09/02 21:12:09 deraadt Exp $
+ * $Id: _elftc.h,v 1.3 2022/09/01 05:49:04 miod Exp $
  */
 
 /**
@@ -316,11 +316,7 @@ struct name {                                                      \
 #endif
 
 #if defined(__OpenBSD__)
-#if defined(__GNUC__)
-#define        ELFTC_VCSID(ID)         __asm__(".ident\t\"" ID "\"")
-#else
-#define        ELFTC_VCSID(ID)         /**/
-#endif /* __GNUC__ */
+#define        ELFTC_VCSID(ID)         /* intentionally disabled */
 #endif
 
 #endif /* ELFTC_VCSID */