This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] x32: Set GLRO(dl_platform) to "x86_64" by default [BZ #22363]


On Mon, Oct 30, 2017 at 11:36 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> On Okt 30 2017, "H.J. Lu" <hjl.tools@gmail.com> wrote:
>
>> I assume v8l/v8b will be used as AT_PLATFORM for both ILP32 and
>> arm32 programs.
>
> $ LD_SHOW_AUXV=1 /usr/bin/true
> AT_SYSINFO_EHDR: 0xf7e0e000
> AT_HWCAP:        8ff
> AT_PAGESZ:       4096
> AT_CLKTCK:       100
> AT_PHDR:         0x9ea034
> AT_PHENT:        32
> AT_PHNUM:        9
> AT_BASE:         0xf7dd0000
> AT_FLAGS:        0x0
> AT_ENTRY:        0x9eb460
> AT_UID:          0
> AT_EUID:         0
> AT_GID:          0
> AT_EGID:         0
> AT_SECURE:       0
> AT_RANDOM:       0xffcfa0a2
> AT_HWCAP2:       0x0
> AT_EXECFN:       /usr/bin/true
> AT_PLATFORM:     aarch64:ilp32
>
> Andreas.
>

arm64 uses

arch/arm64/kernel/binfmt_ilp32.c:#undef ELF_PLATFORM
arch/arm64/kernel/binfmt_ilp32.c:#define ELF_PLATFORM    ("aarch64_be:ilp32")
arch/arm64/kernel/binfmt_ilp32.c:#define ELF_PLATFORM    ("aarch64:ilp32")

Let me ask x86 kernel people.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]