From 267a3ab363902a42edc2a0daadd19cdcfdc81b4d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 8 Jan 1994 01:01:23 +0000 Subject: [PATCH] * scripttempl/elf.c: Define __bss_start before the .sbss section. --- ld/ChangeLog | 4 +++ ld/scripttempl/elf.sc | 73 +++++++++++++++++++++++++++++++++++-------- 2 files changed, 64 insertions(+), 13 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index defb66c7f32..97c71be44b6 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +Fri Jan 7 20:00:24 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * scripttempl/elf.c: Define __bss_start before the .sbss section. + Thu Jan 6 00:13:10 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * ldmain.c (add_to_set): Add bitsize argument. diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 2e758758758..a6f930240f1 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -1,36 +1,83 @@ +# +# Unusual variables checked by this code: +# NOP - two byte opcode for no-op (defaults to 0) +# DATA_ADDR - if end-of-text-plus-one-page isn't right for data start +# OTHER_READONLY_SECTIONS - other than .text .init .ctors .rodata ... +# (e.g., .PARISC.milli) +# OTHER_READWRITE_SECTIONS - other than .data .bss .sdata ... +# (e.g., .PARISC.global) +# EXECUTABLE_SYMBOLS - symbols that must be defined for an +# executable (e.g., _DYNAMIC_LINK) +# +# When adding sections, do note that the names of some sections are used +# when specifying the start address of the next. +# cat <