1 /* PR 41750 - IPA-SRA used to pass hash->sgot by value rather than by
4 struct bfd_link_hash_table
9 struct foo_link_hash_table
11 struct bfd_link_hash_table root
;
18 struct foo_link_hash_table
*hash
;
21 extern void abort (void);
23 int __attribute__((noinline
))
24 foo_create_got_section (int *abfd
, struct foo_link_info
*info
)
26 info
->hash
->sgot
= abfd
;
31 get_got (int *abfd
, struct foo_link_info
*info
,
32 struct foo_link_hash_table
*hash
)
40 dynobj
= hash
->dynobj
;
42 hash
->dynobj
= dynobj
= abfd
;
43 if (!foo_create_got_section (dynobj
, info
))
50 int * __attribute__((noinline
,noclone
))
51 elf64_ia64_check_relocs (int *abfd
, struct foo_link_info
*info
)
53 return get_got (abfd
, info
, info
->hash
);
56 struct foo_link_info link_info
;
57 struct foo_link_hash_table hash
;
63 link_info
.hash
= &hash
;
64 if (elf64_ia64_check_relocs (&abfd
, &link_info
) != &abfd
)