From ec38dd05480823afb15108d1bfcf875e91723392 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 5 Oct 2001 16:36:55 +0000 Subject: [PATCH] * doc/as.texinfo: Document M and S ELF section flags. * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and -z nocombreloc in usage. --- gas/ChangeLog | 4 ++++ gas/doc/as.texinfo | 13 ++++++++++++- ld/ChangeLog | 5 +++++ ld/emultempl/elf32.em | 2 ++ 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index fe25ca923d3..34095c5fe3e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2001-10-05 Jakub Jelinek + + * doc/as.texinfo: Document M and S ELF section flags. + 2001-10-05 Alan Modra * subsegs.c (subseg_text_p): Return 0 for absolute section. diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo index 7e40900bccc..83f1435bdb5 100644 --- a/gas/doc/as.texinfo +++ b/gas/doc/as.texinfo @@ -4896,7 +4896,7 @@ This is one of the ELF section stack manipulation directives. The others are For ELF targets, the @code{.section} directive is used like this: @smallexample -.section @var{name} [, "@var{flags}"[, @@@var{type}]] +.section @var{name} [, "@var{flags}"[, @@@var{type}[, @@@var{entsize}]]] @end smallexample The optional @var{flags} argument is a quoted string which may contain any @@ -4908,6 +4908,10 @@ section is allocatable section is writable @item x section is executable +@item M +section is mergeable +@item S +section contains zero terminated strings @end table The optional @var{type} argument may contain one of the following constants: @@ -4918,6 +4922,13 @@ section contains data section does not contain data (i.e., section only occupies space) @end table +If @var{flags} contains @code{M} flag, @var{type} argument must be specified +as well as @var{entsize} argument. Sections with @code{M} flag but not +@code{S} flag must contain fixed size constants, each @var{entsize} octets +long. Sections with both @code{M} and @code{S} must contain zero terminated +strings where each character is @var{entsize} bytes long. The linker may remove +duplicates within sections with the same name, same entity size and same flags. + If no flags are specified, the default flags depend upon the section name. If the section name is not recognized, the default will be for the section to have none of the above flags: it will not be allocated in memory, nor writable, nor diff --git a/ld/ChangeLog b/ld/ChangeLog index c638abc5d6c..64e4b542240 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2001-10-05 Jakub Jelinek + + * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and + -z nocombreloc in usage. + 2001-10-03 Jim Blandy * genscripts.sh: Include a comment at the top of each generated diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index c9cf50d914c..105795549a6 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1555,10 +1555,12 @@ cat >>e${EMULATION_NAME}.c <