github.com/primecitizens/pcz/std@v0.2.1/encoding/binfmt/elf/doc.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  //
     4  // Copyright 2009 The Go Authors. All rights reserved.
     5  // Use of this source code is governed by a BSD-style
     6  // license that can be found in the LICENSE file.
     7  
     8  // Package elf provides types to work with elf binaries, code was copied from debug/elf
     9  // of golang standard library, without global variables.
    10  package elf
    11  
    12  /*
    13   * ELF constants and data structures
    14   *
    15   * Derived from:
    16   * $FreeBSD: src/sys/sys/elf32.h,v 1.8.14.1 2005/12/30 22:13:58 marcel Exp $
    17   * $FreeBSD: src/sys/sys/elf64.h,v 1.10.14.1 2005/12/30 22:13:58 marcel Exp $
    18   * $FreeBSD: src/sys/sys/elf_common.h,v 1.15.8.1 2005/12/30 22:13:58 marcel Exp $
    19   * $FreeBSD: src/sys/alpha/include/elf.h,v 1.14 2003/09/25 01:10:22 peter Exp $
    20   * $FreeBSD: src/sys/amd64/include/elf.h,v 1.18 2004/08/03 08:21:48 dfr Exp $
    21   * $FreeBSD: src/sys/arm/include/elf.h,v 1.5.2.1 2006/06/30 21:42:52 cognet Exp $
    22   * $FreeBSD: src/sys/i386/include/elf.h,v 1.16 2004/08/02 19:12:17 dfr Exp $
    23   * $FreeBSD: src/sys/powerpc/include/elf.h,v 1.7 2004/11/02 09:47:01 ssouhlal Exp $
    24   * $FreeBSD: src/sys/sparc64/include/elf.h,v 1.12 2003/09/25 01:10:26 peter Exp $
    25   * "System V ABI" (http://www.sco.com/developers/gabi/latest/ch4.eheader.html)
    26   * "ELF for the ARMĀ® 64-bit Architecture (AArch64)" (ARM IHI 0056B)
    27   * "RISC-V ELF psABI specification" (https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.adoc)
    28   * llvm/BinaryFormat/ELF.h - ELF constants and structures
    29   *
    30   * Copyright (c) 1996-1998 John D. Polstra.  All rights reserved.
    31   * Copyright (c) 2001 David E. O'Brien
    32   * Portions Copyright 2009 The Go Authors. All rights reserved.
    33   *
    34   * Redistribution and use in source and binary forms, with or without
    35   * modification, are permitted provided that the following conditions
    36   * are met:
    37   * 1. Redistributions of source code must retain the above copyright
    38   *    notice, this list of conditions and the following disclaimer.
    39   * 2. Redistributions in binary form must reproduce the above copyright
    40   *    notice, this list of conditions and the following disclaimer in the
    41   *    documentation and/or other materials provided with the distribution.
    42   *
    43   * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    44   * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    45   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    46   * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
    47   * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    48   * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    49   * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    50   * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    51   * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    52   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    53   * SUCH DAMAGE.
    54   */