From 2dcc60be2b8ae13b4fadfe9e2ac5fc7a8ee223f2 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 8 Aug 1999 16:53:30 +0000 Subject: [PATCH] * doc/as.texinfo (Section): Document 's' flag for COFF version. 1999-08-08 Mumit Khan * config/obj-coff.c (obj_coff_section): Handle 's' (shared) section flag. --- gas/ChangeLog | 9 +++++++++ gas/config/obj-coff.c | 2 ++ gas/doc/as.texinfo | 2 ++ 3 files changed, 13 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 59900faecaf..cc275063586 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +1999-08-08 Ian Lance Taylor + + * doc/as.texinfo (Section): Document 's' flag for COFF version. + +1999-08-08 Mumit Khan + + * config/obj-coff.c (obj_coff_section): Handle 's' (shared) + section flag. + 1999-08-08 Ian Lance Taylor * configure.in: Define and substitute GDBINIT. Change AC_OUTPUT diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index b50716c49f0..c5c268031b3 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -1197,6 +1197,7 @@ coff_frob_file_after_relocs () * 'd' (apparently m88k for data) * 'x' for text * 'r' for read-only data + * 's' for shared data (PE) * But if the argument is not a quoted string, treat it as a * subsegment number. */ @@ -1254,6 +1255,7 @@ obj_coff_section (ignore) case 'w': flags |= SEC_DATA; flags &=~ SEC_READONLY; break; case 'x': flags |= SEC_CODE; break; case 'r': flags |= SEC_READONLY; break; + case 's': flags |= SEC_SHARED; break; case 'i': /* STYP_INFO */ case 'l': /* STYP_LIB */ diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo index afe362a7fb2..2b12896c9df 100644 --- a/gas/doc/as.texinfo +++ b/gas/doc/as.texinfo @@ -4291,6 +4291,8 @@ data section read-only section @item x executable section +@item s +shared section (meaningful for PE targets) @end table If no flags are specified, the default flags depend upon the section name. If -- 2.30.2