2 pr41750.c from the execute part of the gcc torture tests.
11 /* PR 41750 - IPA-SRA used to pass hash->sgot by value rather than by
14 struct bfd_link_hash_table
19 struct foo_link_hash_table
21 struct bfd_link_hash_table root
;
28 struct foo_link_hash_table
*hash
;
31 extern void abort (void);
34 foo_create_got_section (int *abfd
, struct foo_link_info
*info
)
36 info
->hash
->sgot
= abfd
;
41 get_got (int *abfd
, struct foo_link_info
*info
,
42 struct foo_link_hash_table
*hash
)
50 dynobj
= hash
->dynobj
;
52 hash
->dynobj
= dynobj
= abfd
;
53 if (!foo_create_got_section (dynobj
, info
))
61 elf64_ia64_check_relocs (int *abfd
, struct foo_link_info
*info
)
63 return get_got (abfd
, info
, info
->hash
);
66 struct foo_link_info link_info
;
67 struct foo_link_hash_table hash
;
71 testTortureExecute (void)
73 link_info
.hash
= &hash
;
74 if (elf64_ia64_check_relocs (&abfd
, &link_info
) != &abfd
)