mirror of
https://github.com/ziglang/zig.git
synced 2025-01-27 12:20:46 +00:00
update glibc start files to 2.39
README file stays intact.
This commit is contained in:
parent
53137050f8
commit
ad34de32a8
21
lib/libc/glibc/LICENSES
vendored
21
lib/libc/glibc/LICENSES
vendored
@ -389,3 +389,24 @@ Copyright 2001 by Stephen L. Moshier <moshier@na-net.ornl.gov>
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
Copyright (c) 1995 IBM Corporation
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
2
lib/libc/glibc/bits/byteswap.h
vendored
2
lib/libc/glibc/bits/byteswap.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Macros and inline functions to swap the order of bytes in integer values.
|
||||
Copyright (C) 1997-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1997-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/floatn-common.h
vendored
2
lib/libc/glibc/bits/floatn-common.h
vendored
@ -1,6 +1,6 @@
|
||||
/* Macros to control TS 18661-3 glibc features where the same
|
||||
definitions are appropriate for all platforms.
|
||||
Copyright (C) 2017-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2017-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/libc-header-start.h
vendored
2
lib/libc/glibc/bits/libc-header-start.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Handle feature test macros at the start of a header.
|
||||
Copyright (C) 2016-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2016-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/long-double.h
vendored
2
lib/libc/glibc/bits/long-double.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Properties of long double type.
|
||||
Copyright (C) 2016-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2016-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/select.h
vendored
2
lib/libc/glibc/bits/select.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1997-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1997-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/signum-generic.h
vendored
2
lib/libc/glibc/bits/signum-generic.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Signal number constants. Generic template.
|
||||
Copyright (C) 1991-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/stat.h
vendored
2
lib/libc/glibc/bits/stat.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1992-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1992-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/stdint-intn.h
vendored
2
lib/libc/glibc/bits/stdint-intn.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Define intN_t types.
|
||||
Copyright (C) 2017-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2017-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/stdlib-bsearch.h
vendored
2
lib/libc/glibc/bits/stdlib-bsearch.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Perform binary search - inline version.
|
||||
Copyright (C) 1991-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/time64.h
vendored
2
lib/libc/glibc/bits/time64.h
vendored
@ -1,5 +1,5 @@
|
||||
/* bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
Copyright (C) 2018-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2018-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/timesize.h
vendored
2
lib/libc/glibc/bits/timesize.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Bit size of the time_t type at glibc build time, general case.
|
||||
Copyright (C) 2018-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2018-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Sched parameter structure. Generic version.
|
||||
Copyright (C) 1996-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/typesizes.h
vendored
2
lib/libc/glibc/bits/typesizes.h
vendored
@ -1,5 +1,5 @@
|
||||
/* bits/typesizes.h -- underlying types for *_t. Generic version.
|
||||
Copyright (C) 2002-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/uintn-identity.h
vendored
2
lib/libc/glibc/bits/uintn-identity.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Inline functions to return unsigned integer values unchanged.
|
||||
Copyright (C) 2017-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2017-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/waitflags.h
vendored
2
lib/libc/glibc/bits/waitflags.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Definitions of flag bits for `waitpid' et al.
|
||||
Copyright (C) 1992-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1992-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/bits/waitstatus.h
vendored
2
lib/libc/glibc/bits/waitstatus.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Definitions of status bits for `wait' et al.
|
||||
Copyright (C) 1992-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1992-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/csu/errno.c
vendored
2
lib/libc/glibc/csu/errno.c
vendored
@ -1,5 +1,5 @@
|
||||
/* Definition of `errno' variable. Canonical version.
|
||||
Copyright (C) 2002-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/debug/stack_chk_fail_local.c
vendored
2
lib/libc/glibc/debug/stack_chk_fail_local.c
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2005-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2005-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
132
lib/libc/glibc/elf/elf.h
vendored
132
lib/libc/glibc/elf/elf.h
vendored
@ -1,5 +1,5 @@
|
||||
/* This file defines standard ELF types, structures, and macros.
|
||||
Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -791,9 +791,12 @@ typedef struct
|
||||
Register */
|
||||
#define NT_PPC_PKEY 0x110 /* Memory Protection Keys
|
||||
registers. */
|
||||
#define NT_PPC_DEXCR 0x111 /* PowerPC DEXCR registers. */
|
||||
#define NT_PPC_HASHKEYR 0x112 /* PowerPC HASHKEYR register. */
|
||||
#define NT_386_TLS 0x200 /* i386 TLS slots (struct user_desc) */
|
||||
#define NT_386_IOPERM 0x201 /* x86 io permission bitmap (1=deny) */
|
||||
#define NT_X86_XSTATE 0x202 /* x86 extended state using xsave */
|
||||
#define NT_X86_SHSTK 0x204 /* x86 SHSTK state */
|
||||
#define NT_S390_HIGH_GPRS 0x300 /* s390 upper register halves */
|
||||
#define NT_S390_TIMER 0x301 /* s390 timer register */
|
||||
#define NT_S390_TODCMP 0x302 /* s390 TOD clock comparator register */
|
||||
@ -832,6 +835,8 @@ typedef struct
|
||||
#define NT_MIPS_DSP 0x800 /* MIPS DSP ASE registers. */
|
||||
#define NT_MIPS_FP_MODE 0x801 /* MIPS floating-point mode. */
|
||||
#define NT_MIPS_MSA 0x802 /* MIPS SIMD registers. */
|
||||
#define NT_RISCV_CSR 0x900 /* RISC-V Control and Status Registers */
|
||||
#define NT_RISCV_VECTOR 0x901 /* RISC-V vector registers */
|
||||
#define NT_LOONGARCH_CPUCFG 0xa00 /* LoongArch CPU config registers. */
|
||||
#define NT_LOONGARCH_CSR 0xa01 /* LoongArch control and
|
||||
status registers. */
|
||||
@ -841,6 +846,8 @@ typedef struct
|
||||
SIMD Extension registers. */
|
||||
#define NT_LOONGARCH_LBT 0xa04 /* LoongArch Loongson Binary
|
||||
Translation registers. */
|
||||
#define NT_LOONGARCH_HW_BREAK 0xa05 /* LoongArch hardware breakpoint registers */
|
||||
#define NT_LOONGARCH_HW_WATCH 0xa06 /* LoongArch hardware watchpoint registers */
|
||||
|
||||
/* Legal values for the note segment descriptor types for object files. */
|
||||
|
||||
@ -1685,11 +1692,25 @@ typedef struct
|
||||
#define EF_MIPS_PIC 2 /* Contains PIC code. */
|
||||
#define EF_MIPS_CPIC 4 /* Uses PIC calling sequence. */
|
||||
#define EF_MIPS_XGOT 8
|
||||
#define EF_MIPS_64BIT_WHIRL 16
|
||||
#define EF_MIPS_UCODE 16
|
||||
#define EF_MIPS_ABI2 32
|
||||
#define EF_MIPS_ABI_ON32 64
|
||||
#define EF_MIPS_OPTIONS_FIRST 0x00000080 /* Process the .MIPS.options
|
||||
section first by ld. */
|
||||
#define EF_MIPS_32BITMODE 0x00000100 /* Indicates code compiled for
|
||||
a 64-bit machine in 32-bit
|
||||
mode (regs are 32-bits
|
||||
wide). */
|
||||
#define EF_MIPS_FP64 512 /* Uses FP64 (12 callee-saved). */
|
||||
#define EF_MIPS_NAN2008 1024 /* Uses IEEE 754-2008 NaN encoding. */
|
||||
#define EF_MIPS_ARCH_ASE 0x0f000000 /* Architectural Extensions
|
||||
used by this file. */
|
||||
#define EF_MIPS_ARCH_ASE_MDMX 0x08000000 /* Use MDMX multimedia
|
||||
extensions. */
|
||||
#define EF_MIPS_ARCH_ASE_M16 0x04000000 /* Use MIPS-16 ISA
|
||||
extensions. */
|
||||
#define EF_MIPS_ARCH_ASE_MICROMIPS 0x02000000 /* Use MICROMIPS ISA
|
||||
extensions. */
|
||||
#define EF_MIPS_ARCH 0xf0000000 /* MIPS architecture level. */
|
||||
|
||||
/* Legal values for MIPS architecture level. */
|
||||
@ -1703,6 +1724,38 @@ typedef struct
|
||||
#define EF_MIPS_ARCH_64 0x60000000 /* MIPS64 code. */
|
||||
#define EF_MIPS_ARCH_32R2 0x70000000 /* MIPS32r2 code. */
|
||||
#define EF_MIPS_ARCH_64R2 0x80000000 /* MIPS64r2 code. */
|
||||
#define EF_MIPS_ARCH_32R6 0x90000000 /* MIPS32r6 code. */
|
||||
#define EF_MIPS_ARCH_64R6 0xa0000000 /* MIPS64r6 code. */
|
||||
#define EF_MIPS_ABI 0x0000F000 /* The ABI of the file. Also
|
||||
see EF_MIPS_ABI2 above. */
|
||||
#define EF_MIPS_ABI_O32 0x00001000 /* The original o32 abi. */
|
||||
#define EF_MIPS_ABI_O64 0x00002000 /* O32 extended to work on
|
||||
64 bit architectures. */
|
||||
#define EF_MIPS_ABI_EABI32 0x00003000 /* EABI in 32 bit mode. */
|
||||
#define EF_MIPS_ABI_EABI64 0x00004000 /* EABI in 64 bit mode. */
|
||||
#define EF_MIPS_MACH 0x00FF0000
|
||||
#define EF_MIPS_MACH_3900 0x00810000
|
||||
#define EF_MIPS_MACH_4010 0x00820000
|
||||
#define EF_MIPS_MACH_4100 0x00830000
|
||||
#define EF_MIPS_MACH_ALLEGREX 0x00840000
|
||||
#define EF_MIPS_MACH_4650 0x00850000
|
||||
#define EF_MIPS_MACH_4120 0x00870000
|
||||
#define EF_MIPS_MACH_4111 0x00880000
|
||||
#define EF_MIPS_MACH_SB1 0x008a0000
|
||||
#define EF_MIPS_MACH_OCTEON 0x008b0000
|
||||
#define EF_MIPS_MACH_XLR 0x008c0000
|
||||
#define EF_MIPS_MACH_OCTEON2 0x008d0000
|
||||
#define EF_MIPS_MACH_OCTEON3 0x008e0000
|
||||
#define EF_MIPS_MACH_5400 0x00910000
|
||||
#define EF_MIPS_MACH_5900 0x00920000
|
||||
#define EF_MIPS_MACH_IAMR2 0x00930000
|
||||
#define EF_MIPS_MACH_5500 0x00980000
|
||||
#define EF_MIPS_MACH_9000 0x00990000
|
||||
#define EF_MIPS_MACH_LS2E 0x00A00000
|
||||
#define EF_MIPS_MACH_LS2F 0x00A10000
|
||||
#define EF_MIPS_MACH_GS464 0x00A20000
|
||||
#define EF_MIPS_MACH_GS464E 0x00A30000
|
||||
#define EF_MIPS_MACH_GS264E 0x00A40000
|
||||
|
||||
/* The following are unofficial names and should not be used. */
|
||||
|
||||
@ -1763,6 +1816,7 @@ typedef struct
|
||||
#define SHT_MIPS_EH_REGION 0x70000027
|
||||
#define SHT_MIPS_XLATE_OLD 0x70000028
|
||||
#define SHT_MIPS_PDR_EXCEPTION 0x70000029
|
||||
#define SHT_MIPS_ABIFLAGS 0x7000002a
|
||||
#define SHT_MIPS_XHASH 0x7000002b
|
||||
|
||||
/* Legal values for sh_flags field of Elf32_Shdr. */
|
||||
@ -1931,10 +1985,68 @@ typedef struct
|
||||
#define R_MIPS_TLS_TPREL_HI16 49 /* TP-relative offset, high 16 bits */
|
||||
#define R_MIPS_TLS_TPREL_LO16 50 /* TP-relative offset, low 16 bits */
|
||||
#define R_MIPS_GLOB_DAT 51
|
||||
#define R_MIPS_PC21_S2 60
|
||||
#define R_MIPS_PC26_S2 61
|
||||
#define R_MIPS_PC18_S3 62
|
||||
#define R_MIPS_PC19_S2 63
|
||||
#define R_MIPS_PCHI16 64
|
||||
#define R_MIPS_PCLO16 65
|
||||
#define R_MIPS16_26 100
|
||||
#define R_MIPS16_GPREL 101
|
||||
#define R_MIPS16_GOT16 102
|
||||
#define R_MIPS16_CALL16 103
|
||||
#define R_MIPS16_HI16 104
|
||||
#define R_MIPS16_LO16 105
|
||||
#define R_MIPS16_TLS_GD 106
|
||||
#define R_MIPS16_TLS_LDM 107
|
||||
#define R_MIPS16_TLS_DTPREL_HI16 108
|
||||
#define R_MIPS16_TLS_DTPREL_LO16 109
|
||||
#define R_MIPS16_TLS_GOTTPREL 110
|
||||
#define R_MIPS16_TLS_TPREL_HI16 111
|
||||
#define R_MIPS16_TLS_TPREL_LO16 112
|
||||
#define R_MIPS16_PC16_S1 113
|
||||
#define R_MIPS_COPY 126
|
||||
#define R_MIPS_JUMP_SLOT 127
|
||||
#define R_MIPS_RELATIVE 128
|
||||
#define R_MICROMIPS_26_S1 133
|
||||
#define R_MICROMIPS_HI16 134
|
||||
#define R_MICROMIPS_LO16 135
|
||||
#define R_MICROMIPS_GPREL16 136
|
||||
#define R_MICROMIPS_LITERAL 137
|
||||
#define R_MICROMIPS_GOT16 138
|
||||
#define R_MICROMIPS_PC7_S1 139
|
||||
#define R_MICROMIPS_PC10_S1 140
|
||||
#define R_MICROMIPS_PC16_S1 141
|
||||
#define R_MICROMIPS_CALL16 142
|
||||
#define R_MICROMIPS_GOT_DISP 145
|
||||
#define R_MICROMIPS_GOT_PAGE 146
|
||||
#define R_MICROMIPS_GOT_OFST 147
|
||||
#define R_MICROMIPS_GOT_HI16 148
|
||||
#define R_MICROMIPS_GOT_LO16 149
|
||||
#define R_MICROMIPS_SUB 150
|
||||
#define R_MICROMIPS_HIGHER 151
|
||||
#define R_MICROMIPS_HIGHEST 152
|
||||
#define R_MICROMIPS_CALL_HI16 153
|
||||
#define R_MICROMIPS_CALL_LO16 154
|
||||
#define R_MICROMIPS_SCN_DISP 155
|
||||
#define R_MICROMIPS_JALR 156
|
||||
#define R_MICROMIPS_HI0_LO16 157
|
||||
#define R_MICROMIPS_TLS_GD 162
|
||||
#define R_MICROMIPS_TLS_LDM 163
|
||||
#define R_MICROMIPS_TLS_DTPREL_HI16 164
|
||||
#define R_MICROMIPS_TLS_DTPREL_LO16 165
|
||||
#define R_MICROMIPS_TLS_GOTTPREL 166
|
||||
#define R_MICROMIPS_TLS_TPREL_HI16 169
|
||||
#define R_MICROMIPS_TLS_TPREL_LO16 170
|
||||
#define R_MICROMIPS_GPREL7_S2 172
|
||||
#define R_MICROMIPS_PC23_S2 173
|
||||
#define R_MIPS_PC32 248
|
||||
#define R_MIPS_EH 249
|
||||
#define R_MIPS_GNU_REL16_S2 250
|
||||
#define R_MIPS_GNU_VTINHERIT 253
|
||||
#define R_MIPS_GNU_VTENTRY 254
|
||||
/* Keep this the last entry. */
|
||||
#define R_MIPS_NUM 128
|
||||
#define R_MIPS_NUM 255
|
||||
|
||||
/* Legal values for p_type field of Elf32_Phdr. */
|
||||
|
||||
@ -3527,6 +3639,11 @@ enum
|
||||
/* x86-64 sh_type values. */
|
||||
#define SHT_X86_64_UNWIND 0x70000001 /* Unwind information. */
|
||||
|
||||
/* x86-64 d_tag values. */
|
||||
#define DT_X86_64_PLT (DT_LOPROC + 0)
|
||||
#define DT_X86_64_PLTSZ (DT_LOPROC + 1)
|
||||
#define DT_X86_64_PLTENT (DT_LOPROC + 3)
|
||||
#define DT_X86_64_NUM 4
|
||||
|
||||
/* AM33 relocations. */
|
||||
#define R_MN10300_NONE 0 /* No reloc. */
|
||||
@ -4205,6 +4322,15 @@ enum
|
||||
#define R_LARCH_TLS_GD_HI20 98
|
||||
#define R_LARCH_32_PCREL 99
|
||||
#define R_LARCH_RELAX 100
|
||||
#define R_LARCH_DELETE 101
|
||||
#define R_LARCH_ALIGN 102
|
||||
#define R_LARCH_PCREL20_S2 103
|
||||
#define R_LARCH_CFA 104
|
||||
#define R_LARCH_ADD6 105
|
||||
#define R_LARCH_SUB6 106
|
||||
#define R_LARCH_ADD_ULEB128 107
|
||||
#define R_LARCH_SUB_ULEB128 108
|
||||
#define R_LARCH_64_PCREL 109
|
||||
|
||||
/* ARC specific declarations. */
|
||||
|
||||
|
2
lib/libc/glibc/include/libc-pointer-arith.h
vendored
2
lib/libc/glibc/include/libc-pointer-arith.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Helper macros for pointer arithmetic.
|
||||
Copyright (C) 2012-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
16
lib/libc/glibc/include/libc-symbols.h
vendored
16
lib/libc/glibc/include/libc-symbols.h
vendored
@ -1,6 +1,6 @@
|
||||
/* Support macros for making weak and strong aliases for symbols,
|
||||
and for using symbol sets and linker warnings with GNU ld.
|
||||
Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -155,18 +155,6 @@
|
||||
extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))) \
|
||||
__attribute_copy__ (name);
|
||||
|
||||
/* Zig patch. weak_hidden_alias was removed from glibc v2.36 (v2.37?), Zig
|
||||
needs it for the v2.32 and earlier {f,l,}stat wrappers, so only include
|
||||
in this header for 2.32 and earlier. */
|
||||
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 32) || __GLIBC__ < 2
|
||||
# define weak_hidden_alias(name, aliasname) \
|
||||
_weak_hidden_alias (name, aliasname)
|
||||
# define _weak_hidden_alias(name, aliasname) \
|
||||
extern __typeof (name) aliasname \
|
||||
__attribute__ ((weak, alias (#name), __visibility__ ("hidden"))) \
|
||||
__attribute_copy__ (name);
|
||||
#endif
|
||||
|
||||
/* Declare SYMBOL as weak undefined symbol (resolved to 0 if not defined). */
|
||||
# define weak_extern(symbol) _weak_extern (weak symbol)
|
||||
# define _weak_extern(expr) _Pragma (#expr)
|
||||
@ -612,8 +600,10 @@ for linking")
|
||||
#endif
|
||||
|
||||
#if IS_IN (libmvec)
|
||||
# define libmvec_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
||||
# define libmvec_hidden_def(name) hidden_def (name)
|
||||
#else
|
||||
# define libmvec_hidden_proto(name, attrs...)
|
||||
# define libmvec_hidden_def(name)
|
||||
#endif
|
||||
|
||||
|
2
lib/libc/glibc/include/stap-probe.h
vendored
2
lib/libc/glibc/include/stap-probe.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Macros for defining Systemtap <sys/sdt.h> static probe points.
|
||||
Copyright (C) 2012-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
10
lib/libc/glibc/include/stdlib.h
vendored
10
lib/libc/glibc/include/stdlib.h
vendored
@ -59,6 +59,8 @@ libc_hidden_proto (__isoc23_strtoull_l)
|
||||
libc_hidden_proto. */
|
||||
# undef strtol
|
||||
# define strtol __isoc23_strtol
|
||||
# undef atoi
|
||||
# define atoi(nptr) __isoc23_strtol(nptr, NULL, 10)
|
||||
# undef strtoul
|
||||
# define strtoul __isoc23_strtoul
|
||||
# undef strtoll
|
||||
@ -147,8 +149,6 @@ extern int __posix_openpt (int __oflag) attribute_hidden;
|
||||
extern int __add_to_environ (const char *name, const char *value,
|
||||
const char *combines, int replace)
|
||||
attribute_hidden;
|
||||
extern void _quicksort (void *const pbase, size_t total_elems,
|
||||
size_t size, __compar_d_fn_t cmp, void *arg);
|
||||
|
||||
extern int __on_exit (void (*__func) (int __status, void *__arg), void *__arg);
|
||||
|
||||
@ -157,11 +157,7 @@ libc_hidden_proto (__cxa_atexit);
|
||||
|
||||
extern int __cxa_thread_atexit_impl (void (*func) (void *), void *arg,
|
||||
void *d);
|
||||
extern void __call_tls_dtors (void)
|
||||
#ifndef SHARED
|
||||
__attribute__ ((weak))
|
||||
#endif
|
||||
;
|
||||
extern void __call_tls_dtors (void);
|
||||
libc_hidden_proto (__call_tls_dtors)
|
||||
|
||||
extern void __cxa_finalize (void *d);
|
||||
|
2
lib/libc/glibc/io/bits/statx.h
vendored
2
lib/libc/glibc/io/bits/statx.h
vendored
@ -1,5 +1,5 @@
|
||||
/* statx-related definitions and declarations. Generic version.
|
||||
Copyright (C) 2018-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2018-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
9
lib/libc/glibc/io/fcntl.h
vendored
9
lib/libc/glibc/io/fcntl.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -167,10 +167,6 @@ typedef __pid_t pid_t;
|
||||
effective IDs, not real IDs. */
|
||||
#endif
|
||||
|
||||
|
||||
/* fcntl was a simple symbol until glibc 2.27 inclusive. glibc 2.28 onwards
|
||||
* re-defines it to fcntl64 (via #define) if _FILE_OFFSET_BITS == 64. */
|
||||
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 28) || __GLIBC__ > 2
|
||||
/* Do the file control operation described by CMD on FD.
|
||||
The remaining arguments are interpreted depending on CMD.
|
||||
|
||||
@ -201,9 +197,6 @@ extern int __fcntl_time64 (int __fd, int __request, ...) __THROW;
|
||||
# define fcntl __fcntl_time64
|
||||
# endif
|
||||
#endif
|
||||
#else /* glibc 2.27 or lower */
|
||||
extern int fcntl (int __fd, int __cmd, ...);
|
||||
#endif
|
||||
|
||||
/* Open FILE and return a new file descriptor for it, or -1 on error.
|
||||
OFLAG determines the type of access used. If O_CREAT or O_TMPFILE is set
|
||||
|
55
lib/libc/glibc/io/fstat-2.32.c
vendored
55
lib/libc/glibc/io/fstat-2.32.c
vendored
@ -1,55 +0,0 @@
|
||||
/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* This definition is only used if inlining fails for this function; see
|
||||
the last page of <sys/stat.h>. The real work is done by the `x'
|
||||
function which is passed a version number argument. We arrange in the
|
||||
makefile that when not inlined this function is always statically
|
||||
linked; that way a dynamically-linked executable always encodes the
|
||||
version number corresponding to the data structures it uses, so the `x'
|
||||
functions in the shared library can adapt without needing to recompile
|
||||
all callers. */
|
||||
|
||||
#undef fstat
|
||||
#undef __fstat
|
||||
int
|
||||
attribute_hidden
|
||||
__fstat (int fd, struct stat *buf)
|
||||
{
|
||||
return __fxstat (_STAT_VER, fd, buf);
|
||||
}
|
||||
|
||||
weak_hidden_alias (__fstat, fstat)
|
52
lib/libc/glibc/io/fstat64-2.32.c
vendored
52
lib/libc/glibc/io/fstat64-2.32.c
vendored
@ -1,52 +0,0 @@
|
||||
/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* This definition is only used if inlining fails for this function; see
|
||||
the last page of <sys/stat.h>. The real work is done by the `x'
|
||||
function which is passed a version number argument. We arrange in the
|
||||
makefile that when not inlined this function is always statically
|
||||
linked; that way a dynamically-linked executable always encodes the
|
||||
version number corresponding to the data structures it uses, so the `x'
|
||||
functions in the shared library can adapt without needing to recompile
|
||||
all callers. */
|
||||
|
||||
#undef fstat64
|
||||
int
|
||||
attribute_hidden
|
||||
fstat64 (int fd, struct stat64 *buf)
|
||||
{
|
||||
return __fxstat64 (_STAT_VER, fd, buf);
|
||||
}
|
52
lib/libc/glibc/io/fstatat-2.32.c
vendored
52
lib/libc/glibc/io/fstatat-2.32.c
vendored
@ -1,52 +0,0 @@
|
||||
/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* This definition is only used if inlining fails for this function; see
|
||||
the last page of <sys/stat.h>. The real work is done by the `x'
|
||||
function which is passed a version number argument. We arrange in the
|
||||
makefile that when not inlined this function is always statically
|
||||
linked; that way a dynamically-linked executable always encodes the
|
||||
version number corresponding to the data structures it uses, so the `x'
|
||||
functions in the shared library can adapt without needing to recompile
|
||||
all callers. */
|
||||
|
||||
#undef fstatat
|
||||
int
|
||||
attribute_hidden
|
||||
fstatat (int fd, const char *file, struct stat *buf, int flag)
|
||||
{
|
||||
return __fxstatat (_STAT_VER, fd, file, buf, flag);
|
||||
}
|
52
lib/libc/glibc/io/fstatat64-2.32.c
vendored
52
lib/libc/glibc/io/fstatat64-2.32.c
vendored
@ -1,52 +0,0 @@
|
||||
/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* This definition is only used if inlining fails for this function; see
|
||||
the last page of <sys/stat.h>. The real work is done by the `x'
|
||||
function which is passed a version number argument. We arrange in the
|
||||
makefile that when not inlined this function is always statically
|
||||
linked; that way a dynamically-linked executable always encodes the
|
||||
version number corresponding to the data structures it uses, so the `x'
|
||||
functions in the shared library can adapt without needing to recompile
|
||||
all callers. */
|
||||
|
||||
#undef fstatat64
|
||||
int
|
||||
attribute_hidden
|
||||
fstatat64 (int fd, const char *file, struct stat64 *buf, int flag)
|
||||
{
|
||||
return __fxstatat64 (_STAT_VER, fd, file, buf, flag);
|
||||
}
|
55
lib/libc/glibc/io/lstat-2.32.c
vendored
55
lib/libc/glibc/io/lstat-2.32.c
vendored
@ -1,55 +0,0 @@
|
||||
/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* This definition is only used if inlining fails for this function; see
|
||||
the last page of <sys/stat.h>. The real work is done by the `x'
|
||||
function which is passed a version number argument. We arrange in the
|
||||
makefile that when not inlined this function is always statically
|
||||
linked; that way a dynamically-linked executable always encodes the
|
||||
version number corresponding to the data structures it uses, so the `x'
|
||||
functions in the shared library can adapt without needing to recompile
|
||||
all callers. */
|
||||
|
||||
#undef lstat
|
||||
#undef __lstat
|
||||
int
|
||||
attribute_hidden
|
||||
__lstat (const char *file, struct stat *buf)
|
||||
{
|
||||
return __lxstat (_STAT_VER, file, buf);
|
||||
}
|
||||
|
||||
weak_hidden_alias (__lstat, lstat)
|
52
lib/libc/glibc/io/lstat64-2.32.c
vendored
52
lib/libc/glibc/io/lstat64-2.32.c
vendored
@ -1,52 +0,0 @@
|
||||
/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* This definition is only used if inlining fails for this function; see
|
||||
the last page of <sys/stat.h>. The real work is done by the `x'
|
||||
function which is passed a version number argument. We arrange in the
|
||||
makefile that when not inlined this function is always statically
|
||||
linked; that way a dynamically-linked executable always encodes the
|
||||
version number corresponding to the data structures it uses, so the `x'
|
||||
functions in the shared library can adapt without needing to recompile
|
||||
all callers. */
|
||||
|
||||
#undef lstat64
|
||||
int
|
||||
attribute_hidden
|
||||
lstat64 (const char *file, struct stat64 *buf)
|
||||
{
|
||||
return __lxstat64 (_STAT_VER, file, buf);
|
||||
}
|
55
lib/libc/glibc/io/mknod-2.32.c
vendored
55
lib/libc/glibc/io/mknod-2.32.c
vendored
@ -1,55 +0,0 @@
|
||||
/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* This definition is only used if inlining fails for this function; see
|
||||
the last page of <sys/stat.h>. The real work is done by the `x'
|
||||
function which is passed a version number argument. We arrange in the
|
||||
makefile that when not inlined this function is always statically
|
||||
linked; that way a dynamically-linked executable always encodes the
|
||||
version number corresponding to the data structures it uses, so the `x'
|
||||
functions in the shared library can adapt without needing to recompile
|
||||
all callers. */
|
||||
|
||||
int
|
||||
attribute_hidden
|
||||
__mknod (const char *path, mode_t mode, dev_t dev)
|
||||
{
|
||||
return __xmknod (_MKNOD_VER, path, mode, &dev);
|
||||
}
|
||||
|
||||
weak_hidden_alias (__mknod, mknod)
|
2
lib/libc/glibc/io/mknod.c
vendored
2
lib/libc/glibc/io/mknod.c
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
53
lib/libc/glibc/io/mknodat-2.32.c
vendored
53
lib/libc/glibc/io/mknodat-2.32.c
vendored
@ -1,53 +0,0 @@
|
||||
/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* This definition is only used if inlining fails for this function; see
|
||||
the last page of <sys/stat.h>. The real work is done by the `x'
|
||||
function which is passed a version number argument. We arrange in the
|
||||
makefile that when not inlined this function is always statically
|
||||
linked; that way a dynamically-linked executable always encodes the
|
||||
version number corresponding to the data structures it uses, so the `x'
|
||||
functions in the shared library can adapt without needing to recompile
|
||||
all callers. */
|
||||
|
||||
int
|
||||
attribute_hidden
|
||||
mknodat (int fd, const char *path, mode_t mode, dev_t dev)
|
||||
{
|
||||
return __xmknodat (_MKNOD_VER, fd, path, mode, &dev);
|
||||
}
|
54
lib/libc/glibc/io/stat-2.32.c
vendored
54
lib/libc/glibc/io/stat-2.32.c
vendored
@ -1,54 +0,0 @@
|
||||
/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* This definition is only used if inlining fails for this function; see
|
||||
the last page of <sys/stat.h>. The real work is done by the `x'
|
||||
function which is passed a version number argument. We arrange in the
|
||||
makefile that when not inlined this function is always statically
|
||||
linked; that way a dynamically-linked executable always encodes the
|
||||
version number corresponding to the data structures it uses, so the `x'
|
||||
functions in the shared library can adapt without needing to recompile
|
||||
all callers. */
|
||||
|
||||
#undef stat
|
||||
int
|
||||
attribute_hidden
|
||||
__stat (const char *file, struct stat *buf)
|
||||
{
|
||||
return __xstat (_STAT_VER, file, buf);
|
||||
}
|
||||
|
||||
weak_hidden_alias (__stat, stat)
|
52
lib/libc/glibc/io/stat64-2.32.c
vendored
52
lib/libc/glibc/io/stat64-2.32.c
vendored
@ -1,52 +0,0 @@
|
||||
/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* This definition is only used if inlining fails for this function; see
|
||||
the last page of <sys/stat.h>. The real work is done by the `x'
|
||||
function which is passed a version number argument. We arrange in the
|
||||
makefile that when not inlined this function is always statically
|
||||
linked; that way a dynamically-linked executable always encodes the
|
||||
version number corresponding to the data structures it uses, so the `x'
|
||||
functions in the shared library can adapt without needing to recompile
|
||||
all callers. */
|
||||
|
||||
#undef stat64
|
||||
int
|
||||
attribute_hidden
|
||||
stat64 (const char *file, struct stat64 *buf)
|
||||
{
|
||||
return __xstat64 (_STAT_VER, file, buf);
|
||||
}
|
4
lib/libc/glibc/io/sys/stat.h
vendored
4
lib/libc/glibc/io/sys/stat.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -251,7 +251,7 @@ extern int __REDIRECT_NTH (fstat64, (int __fd, struct stat64 *__buf),
|
||||
__nonnull ((2));
|
||||
# else
|
||||
# define stat64 __stat64_time64
|
||||
# define fstat64 __fstat64_time
|
||||
# define fstat64 __fstat64_time64
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Definition of struct __locale_struct and __locale_t.
|
||||
Copyright (C) 1997-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1997-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/locale/bits/types/locale_t.h
vendored
2
lib/libc/glibc/locale/bits/types/locale_t.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Definition of locale_t.
|
||||
Copyright (C) 2017-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2017-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/misc/sys/cdefs.h
vendored
2
lib/libc/glibc/misc/sys/cdefs.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1992-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1992-2024 Free Software Foundation, Inc.
|
||||
Copyright The GNU Toolchain Authors.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
|
2
lib/libc/glibc/misc/sys/select.h
vendored
2
lib/libc/glibc/misc/sys/select.h
vendored
@ -1,5 +1,5 @@
|
||||
/* `fd_set' type and related macros, and `select'/`pselect' declarations.
|
||||
Copyright (C) 1996-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/posix/bits/cpu-set.h
vendored
2
lib/libc/glibc/posix/bits/cpu-set.h
vendored
@ -1,6 +1,6 @@
|
||||
/* Definition of the cpu_set_t structure used by the POSIX 1003.1b-1993
|
||||
scheduling interface.
|
||||
Copyright (C) 1996-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
4
lib/libc/glibc/posix/bits/types.h
vendored
4
lib/libc/glibc/posix/bits/types.h
vendored
@ -1,5 +1,5 @@
|
||||
/* bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
Copyright (C) 2002-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -217,7 +217,7 @@ typedef int __sig_atomic_t;
|
||||
/* Seconds since the Epoch, visible to user code when time_t is too
|
||||
narrow only for consistency with the old way of widening too-narrow
|
||||
types. User code should never use __time64_t. */
|
||||
#if __TIMESIZE == 64
|
||||
#if __TIMESIZE == 64 && defined __LIBC
|
||||
# define __time64_t __time_t
|
||||
#elif __TIMESIZE != 64
|
||||
__STD_TYPE __TIME64_T_TYPE __time64_t;
|
||||
|
2
lib/libc/glibc/posix/sys/types.h
vendored
2
lib/libc/glibc/posix/sys/types.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/signal/signal.h
vendored
2
lib/libc/glibc/signal/signal.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/stdlib/alloca.h
vendored
2
lib/libc/glibc/stdlib/alloca.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1992-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1992-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/stdlib/bits/stdlib-float.h
vendored
2
lib/libc/glibc/stdlib/bits/stdlib-float.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Floating-point inline functions for stdlib.h.
|
||||
Copyright (C) 2012-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/stdlib/errno.h
vendored
2
lib/libc/glibc/stdlib/errno.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/stdlib/exit.h
vendored
2
lib/libc/glibc/stdlib/exit.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/stdlib/stdlib.h
vendored
2
lib/libc/glibc/stdlib/stdlib.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
||||
Copyright The GNU Toolchain Authors.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
|
2
lib/libc/glibc/string/bits/endian.h
vendored
2
lib/libc/glibc/string/bits/endian.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Endian macros for string.h functions
|
||||
Copyright (C) 1992-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1992-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/string/endian.h
vendored
2
lib/libc/glibc/string/endian.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1992-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1992-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/aarch64/crti.S
vendored
2
lib/libc/glibc/sysdeps/aarch64/crti.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for AArch64.
|
||||
Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
|
2
lib/libc/glibc/sysdeps/aarch64/crtn.S
vendored
2
lib/libc/glibc/sysdeps/aarch64/crtn.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for AArch64.
|
||||
Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2002-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2002-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
|
2
lib/libc/glibc/sysdeps/aarch64/start.S
vendored
2
lib/libc/glibc/sysdeps/aarch64/start.S
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
|
2
lib/libc/glibc/sysdeps/aarch64/sysdep.h
vendored
2
lib/libc/glibc/sysdeps/aarch64/sysdep.h
vendored
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1997-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1997-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
|
2
lib/libc/glibc/sysdeps/alpha/crti.S
vendored
2
lib/libc/glibc/sysdeps/alpha/crti.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for Alpha.
|
||||
Copyright (C) 2001-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/alpha/crtn.S
vendored
2
lib/libc/glibc/sysdeps/alpha/crtn.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for Alpha.
|
||||
Copyright (C) 2001-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/alpha/start.S
vendored
2
lib/libc/glibc/sysdeps/alpha/start.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Startup code for Alpha/ELF.
|
||||
Copyright (C) 1993-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1993-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/arc/sysdep.h
vendored
2
lib/libc/glibc/sysdeps/arc/sysdep.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Assembler macros for ARC.
|
||||
Copyright (C) 2020-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2020-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/arm/arm-features.h
vendored
2
lib/libc/glibc/sysdeps/arm/arm-features.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Macros to test for CPU features on ARM. Generic ARM version.
|
||||
Copyright (C) 2012-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/arm/crti.S
vendored
2
lib/libc/glibc/sysdeps/arm/crti.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for ARM.
|
||||
Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/arm/crtn.S
vendored
2
lib/libc/glibc/sysdeps/arm/crtn.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for ARM.
|
||||
Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/arm/start.S
vendored
2
lib/libc/glibc/sysdeps/arm/start.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Startup code for ARM & ELF
|
||||
Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/arm/sysdep.h
vendored
2
lib/libc/glibc/sysdeps/arm/sysdep.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Assembler macros for ARM.
|
||||
Copyright (C) 1997-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1997-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/csky/sysdep.h
vendored
2
lib/libc/glibc/sysdeps/csky/sysdep.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Assembler macros for C-SKY.
|
||||
Copyright (C) 2018-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2018-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Configuration of lookup functions.
|
||||
Copyright (C) 2000-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/generic/dl-sysdep.h
vendored
2
lib/libc/glibc/sysdeps/generic/dl-sysdep.h
vendored
@ -1,5 +1,5 @@
|
||||
/* System-specific settings for dynamic linker code. Generic version.
|
||||
Copyright (C) 2002-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/generic/dwarf2.h
vendored
2
lib/libc/glibc/sysdeps/generic/dwarf2.h
vendored
@ -1,6 +1,6 @@
|
||||
/* Declarations and definitions of codes relating to the DWARF2 symbolic
|
||||
debugging information format.
|
||||
Copyright (C) 1992-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1992-2024 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
|
2
lib/libc/glibc/sysdeps/generic/libc-lock.h
vendored
2
lib/libc/glibc/sysdeps/generic/libc-lock.h
vendored
@ -1,5 +1,5 @@
|
||||
/* libc-internal interface for mutex locks. Stub version.
|
||||
Copyright (C) 1996-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/generic/libc-symver.h
vendored
2
lib/libc/glibc/sysdeps/generic/libc-symver.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Symbol version management.
|
||||
Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Single thread optimization, generic version.
|
||||
Copyright (C) 2019-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2019-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/generic/sysdep.h
vendored
2
lib/libc/glibc/sysdeps/generic/sysdep.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Generic asm macros used on many machines.
|
||||
Copyright (C) 1991-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/generic/tls.h
vendored
2
lib/libc/glibc/sysdeps/generic/tls.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Definition for thread-local data handling. Generic version.
|
||||
Copyright (C) 2002-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/hppa/crti.S
vendored
2
lib/libc/glibc/sysdeps/hppa/crti.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for HPPA
|
||||
Copyright (C) 2000-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/hppa/crtn.S
vendored
2
lib/libc/glibc/sysdeps/hppa/crtn.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for HPPA
|
||||
Copyright (C) 2000-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2005-2023 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2005-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/hppa/start.S
vendored
2
lib/libc/glibc/sysdeps/hppa/start.S
vendored
@ -1,5 +1,5 @@
|
||||
/* ELF startup code for HPPA.
|
||||
Copyright (C) 2002-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/hppa/sysdep.h
vendored
2
lib/libc/glibc/sysdeps/hppa/sysdep.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Assembler macros for HP/PA.
|
||||
Copyright (C) 1999-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/htl/bits/pthread.h
vendored
2
lib/libc/glibc/sysdeps/htl/bits/pthread.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Pthread data structures. Generic version.
|
||||
Copyright (C) 2002-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Common threading primitives definitions for both POSIX and C11.
|
||||
Copyright (C) 2017-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2017-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/htl/libc-lockP.h
vendored
2
lib/libc/glibc/sysdeps/htl/libc-lockP.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Private libc-internal interface for mutex locks.
|
||||
Copyright (C) 2015-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2015-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/htl/pthread.h
vendored
2
lib/libc/glibc/sysdeps/htl/pthread.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Posix threads. Hurd version.
|
||||
Copyright (C) 2000-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
4
lib/libc/glibc/sysdeps/i386/crti.S
vendored
4
lib/libc/glibc/sysdeps/i386/crti.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for x86.
|
||||
Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -61,7 +61,6 @@
|
||||
.hidden _init
|
||||
.type _init, @function
|
||||
_init:
|
||||
_CET_ENDBR
|
||||
pushl %ebx
|
||||
/* Maintain 16-byte stack alignment for called functions. */
|
||||
subl $8, %esp
|
||||
@ -82,7 +81,6 @@ _init:
|
||||
.hidden _fini
|
||||
.type _fini, @function
|
||||
_fini:
|
||||
_CET_ENDBR
|
||||
pushl %ebx
|
||||
subl $8, %esp
|
||||
LOAD_PIC_REG (bx)
|
||||
|
2
lib/libc/glibc/sysdeps/i386/crtn.S
vendored
2
lib/libc/glibc/sysdeps/i386/crtn.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for x86.
|
||||
Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Machine-specific pthread type layouts. Hurd i386 version.
|
||||
Copyright (C) 2002-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
3
lib/libc/glibc/sysdeps/i386/start.S
vendored
3
lib/libc/glibc/sysdeps/i386/start.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Startup code compliant to the ELF i386 ABI.
|
||||
Copyright (C) 1995-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -132,7 +132,6 @@ ENTRY (_start)
|
||||
|
||||
#if defined PIC && !defined SHARED
|
||||
__wrap_main:
|
||||
_CET_ENDBR
|
||||
jmp main@PLT
|
||||
#endif
|
||||
END (_start)
|
||||
|
2
lib/libc/glibc/sysdeps/i386/symbol-hacks.h
vendored
2
lib/libc/glibc/sysdeps/i386/symbol-hacks.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Hacks needed for symbol manipulation. i386 version.
|
||||
Copyright (C) 2017-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2017-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
13
lib/libc/glibc/sysdeps/i386/sysdep.h
vendored
13
lib/libc/glibc/sysdeps/i386/sysdep.h
vendored
@ -1,5 +1,5 @@
|
||||
/* Assembler macros for i386.
|
||||
Copyright (C) 1991-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -18,6 +18,8 @@
|
||||
|
||||
#include <sysdeps/x86/sysdep.h>
|
||||
|
||||
#define CET_ENABLED 0
|
||||
|
||||
/* It is desirable that the names of PIC thunks match those used by
|
||||
GCC so that multiple copies are eliminated by the linker. Because
|
||||
GCC 4.6 and earlier use __i686 in the names, it is necessary to
|
||||
@ -37,6 +39,15 @@
|
||||
|
||||
/* Syntactic details of assembler. */
|
||||
|
||||
/* Define an entry point visible from C. */
|
||||
#define ENTRY_P2ALIGN(name, alignment) \
|
||||
.globl C_SYMBOL_NAME(name); \
|
||||
.type C_SYMBOL_NAME(name),@function; \
|
||||
.align ALIGNARG(alignment); \
|
||||
C_LABEL(name) \
|
||||
cfi_startproc; \
|
||||
CALL_MCOUNT
|
||||
|
||||
/* If compiled for profiling, call `mcount' at the start of each function. */
|
||||
#ifdef PROF
|
||||
/* The mcount code relies on a normal frame pointer being on the stack
|
||||
|
162
lib/libc/glibc/sysdeps/ia64/crti.S
vendored
162
lib/libc/glibc/sysdeps/ia64/crti.S
vendored
@ -1,162 +0,0 @@
|
||||
/* Special .init and .fini section support for IA64.
|
||||
Copyright (C) 2000-2023 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library. If not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
/* crti.S puts a function prologue at the beginning of the .init and
|
||||
.fini sections and defines global symbols for those addresses, so
|
||||
they can be called as functions. The symbols _init and _fini are
|
||||
magic and cause the linker to emit DT_INIT and DT_FINI. */
|
||||
|
||||
#include <libc-symbols.h>
|
||||
#include <sysdep.h>
|
||||
#undef ret
|
||||
|
||||
#ifndef PREINIT_FUNCTION
|
||||
# define PREINIT_FUNCTION __gmon_start__
|
||||
#endif
|
||||
|
||||
#ifndef PREINIT_FUNCTION_WEAK
|
||||
# define PREINIT_FUNCTION_WEAK 1
|
||||
#endif
|
||||
|
||||
#if PREINIT_FUNCTION_WEAK
|
||||
weak_extern (PREINIT_FUNCTION)
|
||||
#else
|
||||
.hidden PREINIT_FUNCTION
|
||||
#endif
|
||||
|
||||
/* If we have working .init_array support, we want to keep the .init
|
||||
section empty (apart from the mandatory prologue/epilogue. This
|
||||
ensures that the default unwind conventions (return-pointer in b0,
|
||||
frame state in ar.pfs, etc.) will do the Right Thing. To ensure
|
||||
an empty .init section, we register gmon_initializer() via the
|
||||
.init_array.
|
||||
|
||||
--davidm 02/10/29 */
|
||||
|
||||
#if PREINIT_FUNCTION_WEAK
|
||||
/* This blob of assembly code is one simple C function:
|
||||
|
||||
static void
|
||||
__attribute__ ((used))
|
||||
gmon_initializer (void)
|
||||
{
|
||||
extern void weak_function __gmon_start__ (void);
|
||||
|
||||
if (__gmon_start__)
|
||||
(*__gmon_start__)();
|
||||
}
|
||||
*/
|
||||
.text
|
||||
.align 64
|
||||
.proc gmon_initializer#
|
||||
gmon_initializer:
|
||||
.prologue 12, 32
|
||||
.mmi
|
||||
.save ar.pfs, r33
|
||||
alloc r33 = ar.pfs, 0, 3, 0, 0
|
||||
addl r14 = @ltoff(@fptr(PREINIT_FUNCTION#)), gp
|
||||
.save rp, r32
|
||||
mov r32 = b0
|
||||
.mmi
|
||||
mov r34 = r1
|
||||
.body
|
||||
;;
|
||||
ld8 r14 = [r14]
|
||||
nop 0
|
||||
;;
|
||||
.mib
|
||||
cmp.eq p6, p7 = 0, r14
|
||||
nop 0
|
||||
(p6) br.cond.spnt .L1
|
||||
;;
|
||||
.mib
|
||||
nop 0
|
||||
nop 0
|
||||
br.call.sptk.many b0 = PREINIT_FUNCTION#
|
||||
;;
|
||||
.mmi
|
||||
mov r1 = r34
|
||||
nop 0
|
||||
nop 0
|
||||
.L1:
|
||||
.mii
|
||||
nop 0
|
||||
mov ar.pfs = r33
|
||||
nop 0
|
||||
;;
|
||||
.mib
|
||||
nop 0
|
||||
mov b0 = r32
|
||||
br.ret.sptk.many b0
|
||||
.endp gmon_initializer#
|
||||
# undef PREINIT_FUNCTION
|
||||
# define PREINIT_FUNCTION gmon_initializer
|
||||
#endif
|
||||
.section .init_array, "aw"
|
||||
data8 @fptr(PREINIT_FUNCTION)
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
.global _init#
|
||||
.hidden _init#
|
||||
.proc _init#
|
||||
_init:
|
||||
.prologue
|
||||
.save ar.pfs, r34
|
||||
alloc r34 = ar.pfs, 0, 3, 0, 0
|
||||
.vframe r32
|
||||
mov r32 = r12
|
||||
.save rp, r33
|
||||
mov r33 = b0
|
||||
.body
|
||||
adds r12 = -16, r12
|
||||
;; /* see gmon_initializer() above */
|
||||
.endp _init#
|
||||
|
||||
.section .fini,"ax",@progbits
|
||||
.global _fini#
|
||||
.hidden _fini#
|
||||
.proc _fini#
|
||||
_fini:
|
||||
.prologue
|
||||
.save ar.pfs, r34
|
||||
alloc r34 = ar.pfs, 0, 3, 0, 0
|
||||
.vframe r32
|
||||
mov r32 = r12
|
||||
.save rp, r33
|
||||
mov r33 = b0
|
||||
.body
|
||||
adds r12 = -16, r12
|
||||
;;
|
||||
.endp _fini#
|
69
lib/libc/glibc/sysdeps/ia64/crtn.S
vendored
69
lib/libc/glibc/sysdeps/ia64/crtn.S
vendored
@ -1,69 +0,0 @@
|
||||
/* Special .init and .fini section support for ARM.
|
||||
Copyright (C) 2000-2023 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library. If not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sysdep.h>
|
||||
#undef ret
|
||||
|
||||
/* crtn.S puts function epilogues in the .init and .fini sections
|
||||
corresponding to the prologues in crti.S. */
|
||||
|
||||
.section .init,"ax",@progbits
|
||||
.proc _init#
|
||||
_init:
|
||||
.prologue
|
||||
.save ar.pfs, r34
|
||||
.vframe r32
|
||||
.save rp, r33
|
||||
.body
|
||||
.regstk 0,2,0,0
|
||||
mov r12 = r32
|
||||
mov ar.pfs = r34
|
||||
mov b0 = r33
|
||||
br.ret.sptk.many b0
|
||||
.endp _init#
|
||||
|
||||
.section .fini,"ax",@progbits
|
||||
.proc _fini#
|
||||
_fini:
|
||||
.prologue
|
||||
.save ar.pfs, r34
|
||||
.vframe r32
|
||||
.save rp, r33
|
||||
.body
|
||||
mov r12 = r32
|
||||
mov ar.pfs = r34
|
||||
mov b0 = r33
|
||||
br.ret.sptk.many b0
|
||||
.endp _fini#
|
21
lib/libc/glibc/sysdeps/ia64/dl-dtprocnum.h
vendored
21
lib/libc/glibc/sysdeps/ia64/dl-dtprocnum.h
vendored
@ -1,21 +0,0 @@
|
||||
/* Configuration of lookup functions. IA-64 version.
|
||||
Copyright (C) 2000-2023 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
/* Number of extra dynamic section entries for this architecture. By
|
||||
default there are none. */
|
||||
#define DT_THISPROCNUM DT_IA_64_NUM
|
8
lib/libc/glibc/sysdeps/ia64/entry.h
vendored
8
lib/libc/glibc/sysdeps/ia64/entry.h
vendored
@ -1,8 +0,0 @@
|
||||
#include <link.h>
|
||||
#include <dl-fptr.h>
|
||||
|
||||
extern void _start (void);
|
||||
|
||||
/* The function's entry point is stored in the first word of the
|
||||
function descriptor (plabel) of _start(). */
|
||||
#define ENTRY_POINT ELF_PTR_TO_FDESC (_start)->ip
|
112
lib/libc/glibc/sysdeps/ia64/start.S
vendored
112
lib/libc/glibc/sysdeps/ia64/start.S
vendored
@ -1,112 +0,0 @@
|
||||
/* Copyright (C) 1999-2023 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
In addition to the permissions in the GNU Lesser General Public
|
||||
License, the Free Software Foundation gives you unlimited
|
||||
permission to link the compiled version of this file with other
|
||||
programs, and to distribute those programs without any restriction
|
||||
coming from the use of this file. (The GNU Lesser General Public
|
||||
License restrictions do apply in other respects; for example, they
|
||||
cover modification of the file, and distribution when not linked
|
||||
into another program.)
|
||||
|
||||
Note that people who make modified versions of this file are not
|
||||
obligated to grant this special exception for their modified
|
||||
versions; it is their choice whether to do so. The GNU Lesser
|
||||
General Public License gives permission to release a modified
|
||||
version without this exception; this exception also makes it
|
||||
possible to release a modified version which carries forward this
|
||||
exception.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sysdep.h>
|
||||
|
||||
#include <asm/fpu.h>
|
||||
|
||||
/*
|
||||
* Arguments for __libc_start_main:
|
||||
* out0: main
|
||||
* out1: argc
|
||||
* out2: argv
|
||||
* out3: init
|
||||
* out4: fini
|
||||
* out5: rtld_fini
|
||||
* out6: stack_end
|
||||
*/
|
||||
|
||||
.align 32
|
||||
.global _start
|
||||
|
||||
.proc _start
|
||||
.type _start,@function
|
||||
_start:
|
||||
.prologue
|
||||
.save rp, r0
|
||||
.body
|
||||
.prologue
|
||||
{ .mlx
|
||||
alloc r2 = ar.pfs,0,0,7,0
|
||||
movl r3 = FPSR_DEFAULT
|
||||
}
|
||||
{ .mlx
|
||||
adds out2 = 16, sp /* get address of argc value */
|
||||
movl gp = @gprel(0f)
|
||||
;;
|
||||
}
|
||||
0: { .mmi
|
||||
ld8 out1 = [out2], 8 /* load argc and move out2 to become argv */
|
||||
mov.m r10 = ar.bsp /* fetch rbs base address */
|
||||
mov r9 = ip
|
||||
;;
|
||||
}
|
||||
{ .mii
|
||||
mov ar.fpsr = r3
|
||||
sub gp = r9, gp /* back-compute gp value */
|
||||
adds out6 = 16, sp /* highest non-environment stack address */
|
||||
;;
|
||||
}
|
||||
{
|
||||
addl r11 = @ltoff(__libc_ia64_register_backing_store_base), gp
|
||||
addl out0 = @ltoff(@fptr(main)), gp
|
||||
mov out3 = r0 /* Used to be init. */
|
||||
;;
|
||||
}
|
||||
{ .mmi
|
||||
ld8 r3 = [r11] /* pointer to __libc_ia64_register_backing_store_base */
|
||||
ld8 out0 = [out0] /* pointer to `main' function descriptor */
|
||||
mov out4 = r0 /* Used to be fini. */
|
||||
;;
|
||||
}
|
||||
.body
|
||||
{ .mib
|
||||
st8 [r3] = r10
|
||||
mov out5 = ret0 /* dynamic linker destructor */
|
||||
br.call.sptk.few rp = __libc_start_main
|
||||
}
|
||||
{ .mib
|
||||
break 0 /* break miserably if we ever return */
|
||||
}
|
||||
.endp _start
|
||||
|
||||
/* Define a symbol for the first piece of initialized data. */
|
||||
.data
|
||||
.globl __data_start
|
||||
__data_start:
|
||||
.long 0
|
||||
.weak data_start
|
||||
data_start = __data_start
|
||||
|
||||
.common __libc_ia64_register_backing_store_base, 8, 8
|
61
lib/libc/glibc/sysdeps/ia64/sysdep.h
vendored
61
lib/libc/glibc/sysdeps/ia64/sysdep.h
vendored
@ -1,61 +0,0 @@
|
||||
/* Copyright (C) 2000-2023 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <sysdeps/generic/sysdep.h>
|
||||
|
||||
#ifdef __ASSEMBLER__
|
||||
|
||||
/* Macros to help writing .prologue directives in assembly code. */
|
||||
#define ASM_UNW_PRLG_RP 0x8
|
||||
#define ASM_UNW_PRLG_PFS 0x4
|
||||
#define ASM_UNW_PRLG_PSP 0x2
|
||||
#define ASM_UNW_PRLG_PR 0x1
|
||||
#define ASM_UNW_PRLG_GRSAVE(ninputs) (32+(ninputs))
|
||||
|
||||
#define ENTRY(name) \
|
||||
.text; \
|
||||
.align 32; \
|
||||
.proc C_SYMBOL_NAME(name); \
|
||||
.global C_SYMBOL_NAME(name); \
|
||||
C_LABEL(name) \
|
||||
CALL_MCOUNT
|
||||
|
||||
#define LOCAL_ENTRY(name) \
|
||||
.text; \
|
||||
.align 32; \
|
||||
.proc C_SYMBOL_NAME(name); \
|
||||
C_LABEL(name) \
|
||||
CALL_MCOUNT
|
||||
|
||||
#define LEAF(name) \
|
||||
.text; \
|
||||
.align 32; \
|
||||
.proc C_SYMBOL_NAME(name); \
|
||||
.global name; \
|
||||
C_LABEL(name)
|
||||
|
||||
#define LOCAL_LEAF(name) \
|
||||
.text; \
|
||||
.align 32; \
|
||||
.proc C_SYMBOL_NAME(name); \
|
||||
C_LABEL(name)
|
||||
|
||||
/* Mark the end of function SYM. */
|
||||
#undef END
|
||||
#define END(sym) .endp C_SYMBOL_NAME(sym)
|
||||
|
||||
#endif /* ASSEMBLER */
|
@ -1,5 +1,5 @@
|
||||
/* Assembler macros for Coldfire.
|
||||
Copyright (C) 1998-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/m68k/crti.S
vendored
2
lib/libc/glibc/sysdeps/m68k/crti.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for m68k.
|
||||
Copyright (C) 2012-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
2
lib/libc/glibc/sysdeps/m68k/crtn.S
vendored
2
lib/libc/glibc/sysdeps/m68k/crtn.S
vendored
@ -1,5 +1,5 @@
|
||||
/* Special .init and .fini section support for m68k.
|
||||
Copyright (C) 2012-2023 Free Software Foundation, Inc.
|
||||
Copyright (C) 2012-2024 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user