From nobody Sun Dec 04 04:42:29 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NPvDP5Hp0z4jFRw; Sun, 4 Dec 2022 04:42:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NPvDP4kQwz4K4r; Sun, 4 Dec 2022 04:42:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670128949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZxqiNfrJpqz+8Uen8jyF117uJGJRWtVEnxWsgyus48U=; b=IVRpH8dscjJR+A/fL78iwsj6ay+lygz18LKBeMymtbRHzn7cY2CB2sRPHJub94cIh+XvEe RU/gX+l3nzzjjIsnREKn4kJhiIV0lCE1UhmbhXVG/lx2li+V+MBaJJq6IEnfRt181TkIwP myH/EpqxebdAsCz0R02rkqRsyjdVOoLrZLttGGOsqmJt+bDGS6noqzPTe1J8ziEHv0VPQt k2Zcaqi4+h8vyix+8aJo4k6k0OFIxXde/FDdBv1xeMEIfIxeZLfXdNBZ5YbGcUgyK4AeXS kNk1abc6QeEDZCJmmqrVdqoI4RtheDhUby0MROrRT8Tc0KCYiVnfTbqL7ev7Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670128949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZxqiNfrJpqz+8Uen8jyF117uJGJRWtVEnxWsgyus48U=; b=NF50a6u7ytUEQyHDbB+x0DWGN5tPx8m17R3Enu+smRrLj0nFZRJqW3XfxMDhsnVF7UJfju mRgEav8He6ENNwTbxw2RGaH+Qv3MvHua/v2XOZ0GiVR55iC2FdR/57UUV+c2waVf/O8hMk A4eqxat6dyU4+BS4ycBTAqdG9ZI7Bah6YrrefymnMGvqV+OIrUvOdvBlIjNSwMBw+45if7 GkXJBQGoAgHh3Cj3WIuC0xpzRu2/jXeAx0buVlxs1MSA4eC1quwMdt+Q37920/VyrzYPd/ alFdnfeLtYQ9ckOhW7ld2eT7A2JuTZMfY0iwQAAW+C6ctxCEimjJB2NrTp6hLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670128949; a=rsa-sha256; cv=none; b=rOUC7yqu0hN/330Pg42sVvsXUfJARFWjyBCcl6AhKDSjMI6SBjyQUjcZ6IOqI0RK+nWA6e NBTwmrwibC3AT9fkCUCaZ508QucxICI9GF8DH3xaqeHfnqpOkTTSols8ptz0FgqUWeVA/C Y6dr6R/pLuSMVoigZPTIDr/5KK555zaMUYiY7yj7J5ATJAXNSpxYLqg/JNit6m34dTS2df jQgOa67+8R9R9BfB3oigs+Ttrz54bLO4/1emy4oFN5N30HU0EYbe9mNxcAKO77kAd6bZaY Wn4tUNyHtZM5gDEiBoWfwXjUWfRqAulAuFhQfwSdll8IueFDc5w5/Ea9Dhv56A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NPvDP3nfYz1LMg; Sun, 4 Dec 2022 04:42:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2B44gT01087355; Sun, 4 Dec 2022 04:42:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B44gTU6087354; Sun, 4 Dec 2022 04:42:29 GMT (envelope-from git) Date: Sun, 4 Dec 2022 04:42:29 GMT Message-Id: <202212040442.2B44gTU6087354@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: e3b74ec119a7 - main - kboot: powerpc ldscript catchup List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e3b74ec119a7d98a0f340674e28923707b7166b4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e3b74ec119a7d98a0f340674e28923707b7166b4 commit e3b74ec119a7d98a0f340674e28923707b7166b4 Author: Warner Losh AuthorDate: 2022-12-04 04:41:05 +0000 Commit: Warner Losh CommitDate: 2022-12-04 04:41:28 +0000 kboot: powerpc ldscript catchup Catch up with the latest ldscript for powerpc. Make it match others in the tree. Sponsored by: Netflix --- stand/kboot/arch/powerpc64/ldscript.powerpc | 48 +++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/stand/kboot/arch/powerpc64/ldscript.powerpc b/stand/kboot/arch/powerpc64/ldscript.powerpc index 729113695105..662871eb7c09 100644 --- a/stand/kboot/arch/powerpc64/ldscript.powerpc +++ b/stand/kboot/arch/powerpc64/ldscript.powerpc @@ -10,15 +10,7 @@ SECTIONS { /* Read-only sections, merged into text segment: */ . = 0x100000; - .text : - { - *(.text) - /* .gnu.warning sections are handled specially by elf32.em. */ - *(.gnu.warning) - *(.gnu.linkonce.t*) - } =0 - _etext = .; - .interp : { *(.interp) } + .interp : { *(.interp) } :text .hash : { *(.hash) } .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) } @@ -40,7 +32,9 @@ SECTIONS .rela.fini : { *(.rela.fini) } .rela.bss : { *(.rela.bss) } .rela.plt : { *(.rela.plt) } + .rela.sdata : { *(.rela.sdata) } .rela.sbss : { *(.rela.sbss) } + .rela.sdata2 : { *(.rela.sdata2) } .rela.sbss2 : { *(.rela.sbss2) } .text : { @@ -55,9 +49,11 @@ SECTIONS .fini : { *(.fini) } =0 .rodata : { *(.rodata) *(.gnu.linkonce.r*) } .rodata1 : { *(.rodata1) } + .sdata2 : { *(.sdata2) } .sbss2 : { *(.sbss2) } /* Adjust the address for the data segment to the next page up. */ . = ((. + 0x1000) & ~(0x1000 - 1)); + .data.rel.ro : { *(.data.rel.ro*) } .data : { *(.data) @@ -86,6 +82,10 @@ SECTIONS .got : { *(.got) } .got.plt : { *(.got.plt) } PROVIDE (_GOT_END_ = .); + /* 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 : { *(.sdata) } _edata = .; PROVIDE (edata = .); .sbss : @@ -107,5 +107,33 @@ SECTIONS . = ALIGN(4096); _end = . ; PROVIDE (end = .); + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + /* DWARF debug sections. + Symbols in the DWARF debugging sections are relative to the beginning + of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } + /* These must appear regardless of . */ } -