From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id BFCB23858292 for ; Fri, 19 Jan 2024 16:06:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BFCB23858292 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BFCB23858292 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::535 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705680406; cv=none; b=Po3NFj4H9za03L57xv7zzmJCKpWBQy7RUSWVVjeoK+E5x031C6xf7dUi6GUdDpzDplMqAXhvhU795en3tZ8kQXgNrdp2kGlleVisOxfrjtUqZR1oCJ3gFCMfDXT088Qk1uWIeYjL6WV1xAnO6d6QGdAxtEBsugoiXMA4mWRp4Qg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705680406; c=relaxed/simple; bh=sEU0j180adlZ7HvET6h0RD9LAFZ70qko0dUoQOr8pqY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=rWlBLwBBrxw3ZIAheI+qLlgJrQz4XhwXGZerPGt00NMP3lOTNDPhsN4wAxskxlfUhDmemRuS4TV1Yg3Kp3lJX9bGeH4IsOmr/BLZ1SWw8We0JtXuuqzc8eNN0TQ25ZhE8qNMZ7yG8kdnWh50ouTt8Oj6As3zU1jg5P+i3c2gLak= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-5cedfc32250so662187a12.0 for ; Fri, 19 Jan 2024 08:06:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705680401; x=1706285201; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=yfvLUUL/uq9PIjJjCLUD7H0pwK17fFaqJyjCAJTb8KY=; b=A//ULT1RRQqiOM6+J2aqU0HmOfHToJhR3MoZ/AmcZH/ue78vRyPW4F+OxcHerhx+UI oGhawSL+XoxguZyW0iz7WJHdYMmqFHr3w3FX+9117CABYwy+EoZU3OwXB+Cgi0mXXzHA ZzWRObWGA0sQ/n7DejlOM0Sp6zCQI4EiRbQ0vq+UBA6BuQldVdCQfzdRRPqPPLnPvteK tSiQnbMzzKWKcQJIMml1xexq7vbBFD6A0Ez6QBxQyyb6Cd9EeiJDInLBbXvb/yBt3QGW sMOziLCEdIs6wcSYCoi2DWH0d/HmhIDvYr4+JE+pNI9kLf0HEZDR6BJx2Uf6evCbDfGG M4mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705680401; x=1706285201; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yfvLUUL/uq9PIjJjCLUD7H0pwK17fFaqJyjCAJTb8KY=; b=nw3D7ERIEje6s02sXAR4GhkMMhTvQl2N0Phyb+EdN9d/RMybkwIxcq6jLNXRnL7hZr 3PleBwKotsPLvoXbZ3f0HMfk6vaHsW4Hy8IcL0uMfUX67aEJSVf4LK4zfo5Iq6JNitdY wzBbxDub8drNTD6rby/TT72FT/Km8w+HycfpcnaU4vCMN7BrezYX5x031B6PFB7qYMk9 iydk1IrXojEWNjjXc25fxYs6OVtp2ADnC1jx+RwDGqyxX4nYo9d1q6tPJ678GJQT+zas PG7afVQjknmLXbzqf/rJEqxCwt+tllksypbNb7s3EUTUjrqrXXwZfP5VdNejxYeUfInI ODmA== X-Gm-Message-State: AOJu0Yy7rrtagYKO4yGFqs7W1NuS2ysXZuhhdGc/TuL8FuoMPRWer/Pu +eAkiV/oOkJey6Eh0Kl4Z+9PvTLb+Y5xdqagGGiNPbmthwTZZukTlGtqMkUg X-Google-Smtp-Source: AGHT+IEZ7YKO4I7we7NqsbgffF9uCMRMpPgfyD00X7CsU9TTP6YCMF5r69ODOcuq9AcI2q/zRLlDQQ== X-Received: by 2002:a17:90b:b10:b0:28c:709e:93b4 with SMTP id bf16-20020a17090b0b1000b0028c709e93b4mr2032608pjb.53.1705680401151; Fri, 19 Jan 2024 08:06:41 -0800 (PST) Received: from gnu-cfl-3.localdomain ([172.56.168.9]) by smtp.gmail.com with ESMTPSA id qd3-20020a17090b3cc300b00290239db63bsm3926055pjb.35.2024.01.19.08.06.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 08:06:40 -0800 (PST) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id 9F4557401C1 for ; Fri, 19 Jan 2024 08:06:39 -0800 (PST) From: "H.J. Lu" To: binutils@sourceware.org Subject: [PATCH] ld: Remove scripttempl/elf_chaos.sc Date: Fri, 19 Jan 2024 08:06:39 -0800 Message-ID: <20240119160639.659155-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3024.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: scripttempl/elf_chaos.sc is unused. Remove it. * scripttempl/elf_chaos.sc: Removed. --- ld/scripttempl/elf_chaos.sc | 339 ------------------------------------ 1 file changed, 339 deletions(-) delete mode 100644 ld/scripttempl/elf_chaos.sc diff --git a/ld/scripttempl/elf_chaos.sc b/ld/scripttempl/elf_chaos.sc deleted file mode 100644 index 69ab6eaa9bf..00000000000 --- a/ld/scripttempl/elf_chaos.sc +++ /dev/null @@ -1,339 +0,0 @@ -# Copyright (C) 2014-2024 Free Software Foundation, Inc. -# -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. -# -# Unusual variables checked by this code: -# NOP - four byte opcode for no-op (defaults to 0) -# NO_SMALL_DATA - no .sbss/.sbss2/.sdata/.sdata2 sections if not -# empty. -# DATA_ADDR - if end-of-text-plus-one-page isn't right for data start -# INITIAL_READONLY_SECTIONS - at start of text segment -# OTHER_READONLY_SECTIONS - other than .text .init .rodata ... -# (e.g., .PARISC.milli) -# OTHER_TEXT_SECTIONS - these get put in .text when relocating -# OTHER_READWRITE_SECTIONS - other than .data .bss .ctors .sdata ... -# (e.g., .PARISC.global) -# ATTRS_SECTIONS - at the end -# OTHER_SECTIONS - at the end -# EXECUTABLE_SYMBOLS - symbols that must be defined for an -# executable (e.g., _DYNAMIC_LINK) -# TEXT_START_SYMBOLS - symbols that appear at the start of the -# .text section. -# DATA_START_SYMBOLS - symbols that appear at the start of the -# .data section. -# OTHER_GOT_SYMBOLS - symbols defined just before .got. -# OTHER_GOT_SECTIONS - sections just after .got. -# OTHER_SDATA_SECTIONS - sections just after .sdata. -# OTHER_BSS_SYMBOLS - symbols that appear at the start of the -# .bss section besides __bss_start. -# DATA_PLT - .plt should be in data segment, not text segment. -# BSS_PLT - .plt should be in bss segment -# TEXT_DYNAMIC - .dynamic in text segment, not data segment. -# EMBEDDED - whether this is for an embedded system. -# SHLIB_TEXT_START_ADDR - if set, add to SIZEOF_HEADERS to set -# start address of shared library. -# INPUT_FILES - INPUT command of files to always include -# WRITABLE_RODATA - if set, the .rodata section should be writable -# INIT_START, INIT_END - statements just before and just after -# combination of .init sections. -# FINI_START, FINI_END - statements just before and just after -# combination of .fini sections. -# STACK_ADDR - start of a .stack section. -# OTHER_SYMBOLS - symbols to place right at the end of the script. -# -# When adding sections, do note that the names of some sections are used -# when specifying the start address of the next. -# - -# Many sections come in three flavours. There is the 'real' section, -# like ".data". Then there are the per-procedure or per-variable -# sections, generated by -ffunction-sections and -fdata-sections in GCC, -# and useful for --gc-sections, which for a variable "foo" might be -# ".data.foo". Then there are the linkonce sections, for which the linker -# eliminates duplicates, which are named like ".gnu.linkonce.d.foo". -# The exact correspondences are: -# -# Section Linkonce section -# .text .gnu.linkonce.t.foo -# .rodata .gnu.linkonce.r.foo -# .data .gnu.linkonce.d.foo -# .bss .gnu.linkonce.b.foo -# .sdata .gnu.linkonce.s.foo -# .sbss .gnu.linkonce.sb.foo -# .sdata2 .gnu.linkonce.s2.foo -# .sbss2 .gnu.linkonce.sb2.foo -# .debug_info .gnu.linkonce.wi.foo -# -# Each of these can also have corresponding .rel.* and .rela.* sections. - -test -z "$ENTRY" && ENTRY=_start -test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT} -test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} -if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH}; else OUTPUT_ARCH=${ARCH}:${MACHINE}; fi -test -z "${ELFSIZE}" && ELFSIZE=32 -test -z "${ALIGNMENT}" && ALIGNMENT="${ELFSIZE} / 8" -test -z "$ATTRS_SECTIONS" && ATTRS_SECTIONS=".gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }" -test "$LD_FLAG" = "N" && DATA_ADDR=. -INTERP=".interp ${RELOCATING-0} : { *(.interp) }" -PLT=".plt ${RELOCATING-0} : { *(.plt) }" -DYNAMIC=".dynamic ${RELOCATING-0} : { *(.dynamic) }" -RODATA=".rodata ${RELOCATING-0} : { *(.rodata${RELOCATING+ .rodata.* .gnu.linkonce.r.*}) }" -if test -z "${NO_SMALL_DATA}"; then - SBSS=".sbss ${RELOCATING-0} : - { - ${RELOCATING+PROVIDE (__sbss_start = .);} - ${RELOCATING+PROVIDE (___sbss_start = .);} - *(.dynsbss) - *(.sbss${RELOCATING+ .sbss.* .gnu.linkonce.sb.*}) - *(.scommon) - ${RELOCATING+PROVIDE (__sbss_end = .);} - ${RELOCATING+PROVIDE (___sbss_end = .);} - }" - SBSS2=".sbss2 ${RELOCATING-0} : { *(.sbss2${RELOCATING+ .sbss2.* .gnu.linkonce.sb2.*}) }" - SDATA="/* We want the small data sections together, so single-instruction offsets - can access them all, and initialized data all before uninitialized, so - we can shorten the on-disk segment size. */ - .sdata ${RELOCATING-0} : - { - ${RELOCATING+${SDATA_START_SYMBOLS}} - *(.sdata${RELOCATING+ .sdata.* .gnu.linkonce.s.*}) - }" - SDATA2=".sdata2 ${RELOCATING-0} : { *(.sdata2${RELOCATING+ .sdata2.* .gnu.linkonce.s2.*}) }" - REL_SDATA=".rel.sdata ${RELOCATING-0} : { *(.rel.sdata${RELOCATING+ .rel.sdata.* .rel.gnu.linkonce.s.*}) } - .rela.sdata ${RELOCATING-0} : { *(.rela.sdata${RELOCATING+ .rela.sdata.* .rela.gnu.linkonce.s.*}) }" - REL_SBSS=".rel.sbss ${RELOCATING-0} : { *(.rel.sbss${RELOCATING+ .rel.sbss.* .rel.gnu.linkonce.sb.*}) } - .rela.sbss ${RELOCATING-0} : { *(.rela.sbss${RELOCATING+ .rela.sbss.* .rela.gnu.linkonce.sb.*}) }" - REL_SDATA2=".rel.sdata2 ${RELOCATING-0} : { *(.rel.sdata2${RELOCATING+ .rel.sdata2.* .rel.gnu.linkonce.s2.*}) } - .rela.sdata2 ${RELOCATING-0} : { *(.rela.sdata2${RELOCATING+ .rela.sdata2.* .rela.gnu.linkonce.s2.*}) }" - REL_SBSS2=".rel.sbss2 ${RELOCATING-0} : { *(.rel.sbss2${RELOCATING+ .rel.sbss2.* .rel.gnu.linkonce.sb2.*}) } - .rela.sbss2 ${RELOCATING-0} : { *(.rela.sbss2${RELOCATING+ .rela.sbss2.* .rela.gnu.linkonce.sb2.*}) }" -fi -CTOR=" - ${CONSTRUCTING+${CTOR_START}} - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - - KEEP (*crtbegin.o(.ctors)) - KEEP (*crtbegin?.o(.ctors)) - - /* We don't want to include the .ctor section from - the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - - KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - ${CONSTRUCTING+${CTOR_END}} -" -DTOR=" - ${CONSTRUCTING+${DTOR_START}} - KEEP (*crtbegin.o(.dtors)) - KEEP (*crtbegin?.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - ${CONSTRUCTING+${DTOR_END}} -" -STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} : - { - ${RELOCATING+_stack = .;} - *(.stack) - }" - -test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR}" - -cat <