1999-09-12 Donn Terry <donn@interix.com>
authorIan Lance Taylor <ian@airs.com>
Sun, 12 Sep 1999 18:33:05 +0000 (18:33 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 12 Sep 1999 18:33:05 +0000 (18:33 +0000)
* objcopy.c (parse_flags): Handle "noload", "debug", and "share".
* binutils.texi, objcopy.1: Document new flags.

binutils/ChangeLog
binutils/binutils.texi
binutils/objcopy.1
binutils/objcopy.c

index 3c48546efc084b8fb525ade5043d83a88179dc09..8010b8375ba7195c4df0902892c8c2af4286fe65 100644 (file)
@@ -1,5 +1,8 @@
 1999-09-12  Donn Terry  <donn@interix.com>
 
+       * objcopy.c (parse_flags): Handle "noload", "debug", and "share".
+       * binutils.texi, objcopy.1: Document new flags.
+
        * ar.c (counted_name_mode): New static variable.
        (counted_name_counter): New static variable.
        (map_over_members): Handle counted mode.
index b08776ba894bdb344d9201dc7c5fa0d953b2770c..a20909ff7e491cadba628b78d91c2e64e12619d0 100644 (file)
@@ -1095,12 +1095,13 @@ if the named section does not exist.
 @item --set-section-flags @var{section}=@var{flags}
 Set the flags for the named section.  The @var{flags} argument is a
 comma separated string of flag names.  The recognized names are
-@samp{alloc}, @samp{contents}, @samp{load}, @samp{readonly},
-@samp{code}, @samp{data}, and @samp{rom}.  You can set the
-@samp{contents} flag for a section which does not have contents, but it
-is not meaningful to clear the @samp{contents} flag of a section which
-does have contents--just remove the section instead.  Not all flags are
-meaningful for all object file formats.
+@samp{alloc}, @samp{contents}, @samp{load}, @samp{noload},
+@samp{readonly}, @samp{code}, @samp{data}, @samp{rom}, @samp{share}, and
+@samp{debug}.  You can set the @samp{contents} flag for a section which
+does not have contents, but it is not meaningful to clear the
+@samp{contents} flag of a section which does have contents--just remove
+the section instead.  Not all flags are meaningful for all object file
+formats.
 
 @item --add-section @var{sectionname}=@var{filename}
 Add a new section named @var{sectionname} while copying the file.  The
index 68b98d3e8986a0648843025df7e3dded63b46983..b3fa296d1e9f1f9a546f134911eb4692d16e888c 100644 (file)
@@ -1,6 +1,6 @@
 .\" Copyright (c) 1991, 93, 94, 95, 96, 97, 98, 1999 Free Software Foundation
 .\" See section COPYING for conditions for redistribution
-.TH objcopy 1 "October 1994" "cygnus support" "GNU Development Tools"
+.TH objcopy 1 "1999" "Cygnus Solutions" "GNU Development Tools"
 .de BP
 .sp
 .ti \-.2i
@@ -249,9 +249,9 @@ if the named section does not exist.
 .B \fB\-\-set\-section\-flags=\fIsection=flags
 Set the flags for the named section.  The \fIflags\fP argument is a
 comma separated string of flag names.  The recognized names are
-\fIalloc\fP, \fIload\fP, \fIreadonly\fP, \fIcode\fP, \fIdata\fP, and
-\fIrom\fP.  Not all flags are meaningful for all object file
-formats.
+\fIalloc\fP, \fIcontents\fP, \fIload\fP, \fInoload\fP, \fIreadonly\fP,
+\fIcode\fP, \fIdata\fP, \fIrom\fP, \fIshare\fP, and \fIdebug\fP.  Not
+all flags are meaningful for all object file formats.
 .TP
 .B \fB\-\-add\-section=\fIsectionname=filename
 Add a new section named \fIsectionname\fR while copying the file.  The
index 6137f1139b1ea0499ea98404dca5c2b8bea5c4ca..f2455baf650f562f9fb1639f76dae937acda459c 100644 (file)
@@ -372,10 +372,13 @@ parse_flags (s)
   else if (strncasecmp (fname, s, len) == 0) ret |= fval
       PARSE_FLAG ("alloc", SEC_ALLOC);
       PARSE_FLAG ("load", SEC_LOAD);
+      PARSE_FLAG ("noload", SEC_NEVER_LOAD);
       PARSE_FLAG ("readonly", SEC_READONLY);
+      PARSE_FLAG ("debug", SEC_DEBUGGING);
       PARSE_FLAG ("code", SEC_CODE);
       PARSE_FLAG ("data", SEC_DATA);
       PARSE_FLAG ("rom", SEC_ROM);
+      PARSE_FLAG ("share", SEC_SHARED);
       PARSE_FLAG ("contents", SEC_HAS_CONTENTS);
 #undef PARSE_FLAG
       else
@@ -386,7 +389,7 @@ parse_flags (s)
          strncpy (copy, s, len);
          copy[len] = '\0';
          non_fatal (_("unrecognized section flag `%s'"), copy);
-         fatal (_("supported flags: alloc, load, readonly, code, data, rom, contents"));
+         fatal (_("supported flags: alloc, load, noload, readonly, debug, code, data, rom, share, contents"));
        }
 
       s = snext;
This page took 0.033423 seconds and 4 git commands to generate.