Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 1999 20:57:48 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys cdefs.h
Message-ID:  <199908300357.UAA63709@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
peter       1999/08/29 20:57:48 PDT

  Modified files:
    sys/sys              cdefs.h 
  Log:
  If using GNUC and ELF, make __IDSTRING() expand into an inline asm
  statement to put the rcsid into the .comment section.  This allows
  the comments (ie:version id's of compiler, headers, source, etc) to be
  stripped out with the standard tools (strip/objcopy).  SVR4 has a
  tool called 'mcs' (manipulate comment section) which allows you to
  add/remove/compact strings.  Removing duplicate strings helps a lot
  if the headers generate them.
  Using __attribute__((section(".comment"))) would probably also work,
  but that still leaves the RCSID occupying C name space somewhere.
  
  Revision  Changes    Path
  1.26      +5 -1      src/sys/sys/cdefs.h



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908300357.UAA63709>