mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
43edfb7fac
PR ld/4504 * ld-elf/data1.c: New file. * ld-elf/data1.h: Likewise. * ld-elf/dynbss1.c: Likewise. * ld-elf/pass.out: Likewise. * ld-elf/shared.exp (build_tests): Add "Build libdata1.so". (run_tests): Add "Run with libdata1.so".
21 lines
344 B
C
21 lines
344 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "data1.h"
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
if ((((long) (&a1)) & (ALIGNMENT1 - 1)))
|
|
abort ();
|
|
if ((((long) (&a2)) & (ALIGNMENT2 - 1)))
|
|
abort ();
|
|
if ((((long) (&a2)) & (ALIGNMENT3 - 1)))
|
|
abort ();
|
|
if ((((long) (&a3)) & (ALIGNMENT4 - 1)))
|
|
abort ();
|
|
|
|
printf ("PASS\n");
|
|
|
|
return(0) ;
|
|
}
|