https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577

--- Comment #44 from EML <elowe at elowe dot com> ---
The aforementioned gprel patch I think is incorrect on HPUX, given this in
ia64.c

/* For HPUX, it is illegal to have relocations in shared segments.  */

static int
ia64_hpux_reloc_rw_mask (void)
{
  return 3;
}


Therefore, if I understand correctly, HP requires all relocations, even to
local data, to be dynamic. And I understand the entire purpose of the earlier
patch is in direct contradiction to this.

Removing this (by adding a !TARGET_HPUX) to ia64.c results in a little
progress.

I can now compile and run Hello World. Woot.

However, I have likely reached the same problem as "Word" - the EOF conftest in
libstdc++v3 fails.

(conftest actually crashed a couple times, the latest is for EOF)

So Hello World runs, but other relatively straightforward programs do not.

Reply via email to