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: Status of build bots?


On 22/08/2019 12:28, Szabolcs Nagy wrote:
> On 22/08/2019 12:21, Florian Weimer wrote:
>> * Szabolcs Nagy:
>>
>>> i do look at the aarch64 and armhf build bots, but i
>>> was away on holiday for a week.
>>>
>>> (aarch64 buildbot is supposed to be green, except for
>>> occasional FAIL: malloc/tst-malloc-thread-exit, same as
>>> https://sourceware.org/bugzilla/show_bug.cgi?id=24537
>>> i might move that test to xtest too. armhf unfortunately
>>> suffers from an arm64 kernel bug that applies aarch64
>>> signal stack limits to aarch32 processes, it should be
>>> fixed in new kernels but i cannot update that machine)
>>>
>>> now i see
>>>
>>> FAIL: elf/tst-dlopen-aout
>>> FAIL: elf/tst-dlopen-aout-container
>>>
>>> $ elf/ld-linux-aarch64.so.1 --library-path nptl:dlfcn:. elf/tst-dlopen-aout
>>> error: tst-dlopen-aout.c:48: dlopen succeeded unexpectedly: elf/tst-dlopen-aout
>>> error: 1 test failures
>>
>> Does the toolchain default to PIE?  Does the link editor add the
>> DF_1_PIE flag to the main program?
> 
> looks PIE with DF_1_PIE set:

i use the gcc of ubuntu which has --enable-default-pie,
i wanted to avoid building my own native toolchain.

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/8/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.2.0-7ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8
--program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin
--enable-default-pie --with-system-zlib --disable-libphobos --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror
--enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
Thread model: posix
gcc version 8.2.0 (Ubuntu 8.2.0-7ubuntu1)


> 
> $ readelf -aW elf/tst-dlopen-aout
> ELF Header:
>   Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
>   Class:                             ELF64
>   Data:                              2's complement, little endian
>   Version:                           1 (current)
>   OS/ABI:                            UNIX - System V
>   ABI Version:                       0
>   Type:                              DYN (Shared object file)
>   Machine:                           AArch64
>   Version:                           0x1
>   Entry point address:               0x1834
>   Start of program headers:          64 (bytes into file)
>   Start of section headers:          90312 (bytes into file)
>   Flags:                             0x0
>   Size of this header:               64 (bytes)
>   Size of program headers:           56 (bytes)
>   Number of program headers:         10
>   Size of section headers:           64 (bytes)
>   Number of section headers:         38
>   Section header string table index: 37
> 
> ...
> 
> Program Headers:
>   Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz   Flg Align
>   PHDR           0x000040 0x0000000000000040 0x0000000000000040 0x000230 0x000230 R   0x8
>   INTERP         0x000270 0x0000000000000270 0x0000000000000270 0x00001b 0x00001b R   0x1
>       [Requesting program interpreter: /lib/ld-linux-aarch64.so.1]
>   LOAD           0x000000 0x0000000000000000 0x0000000000000000 0x0035d0 0x0035d0 R E 0x10000
>   LOAD           0x003b28 0x0000000000013b28 0x0000000000013b28 0x0004e8 0x000518 RW  0x10000
>   DYNAMIC        0x003bc0 0x0000000000013bc0 0x0000000000013bc0 0x000220 0x000220 RW  0x8
>   NOTE           0x00028c 0x000000000000028c 0x000000000000028c 0x000044 0x000044 R   0x4
>   TLS            0x003b28 0x0000000000013b28 0x0000000000013b28 0x000000 0x000004 R   0x4
>   GNU_EH_FRAME   0x0030f8 0x00000000000030f8 0x00000000000030f8 0x0000ec 0x0000ec R   0x4
>   GNU_STACK      0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW  0x10
>   GNU_RELRO      0x003b28 0x0000000000013b28 0x0000000000013b28 0x0004d8 0x0004d8 R   0x1
> 
> ...
> 
> Dynamic section at offset 0x3bc0 contains 30 entries:
>   Tag        Type                         Name/Value
>  0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
>  0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
>  0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
>  0x000000000000000c (INIT)               0x1480
>  0x000000000000000d (FINI)               0x2910
>  0x0000000000000019 (INIT_ARRAY)         0x13b28
>  0x000000000000001b (INIT_ARRAYSZ)       16 (bytes)
>  0x000000000000001a (FINI_ARRAY)         0x13b38
>  0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
>  0x0000000000000004 (HASH)               0x2d0
>  0x000000006ffffef5 (GNU_HASH)           0x528
>  0x0000000000000005 (STRTAB)             0xaa0
>  0x0000000000000006 (SYMTAB)             0x548
>  0x000000000000000a (STRSZ)              608 (bytes)
>  0x000000000000000b (SYMENT)             24 (bytes)
>  0x0000000000000015 (DEBUG)              0x0
>  0x0000000000000003 (PLTGOT)             0x13de0
>  0x0000000000000002 (PLTRELSZ)           1104 (bytes)
>  0x0000000000000014 (PLTREL)             RELA
>  0x0000000000000017 (JMPREL)             0x1030
>  0x0000000000000007 (RELA)               0xdd8
>  0x0000000000000008 (RELASZ)             600 (bytes)
>  0x0000000000000009 (RELAENT)            24 (bytes)
>  0x000000000000001e (FLAGS)              BIND_NOW
>  0x000000006ffffffb (FLAGS_1)            Flags: NOW PIE
>  0x000000006ffffffe (VERNEED)            0xd78
>  0x000000006fffffff (VERNEEDNUM)         3
>  0x000000006ffffff0 (VERSYM)             0xd00
>  0x000000006ffffff9 (RELACOUNT)          13
>  0x0000000000000000 (NULL)               0x0
> 


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