diff options
author | John David Anglin <dave@hiauly1.hia.nrc.ca> | 2002-11-06 19:13:34 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2002-11-06 19:13:34 +0000 |
commit | 81e5bc3dff4fcaeb3ea0014e3df0eab477c1124f (patch) | |
tree | ef4d4e9e00be881360c9bfd0fb3ef4c9c2b6dd3b /gcc | |
parent | 021fa809e3c8bae8d2e5ac7e399716f2a0d7b93a (diff) | |
download | gcc-81e5bc3dff4fcaeb3ea0014e3df0eab477c1124f.zip gcc-81e5bc3dff4fcaeb3ea0014e3df0eab477c1124f.tar.gz gcc-81e5bc3dff4fcaeb3ea0014e3df0eab477c1124f.tar.bz2 |
* pa64-hpux.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Define.
From-SVN: r58863
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/pa/pa64-hpux.h | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 75e18c7..9610b53 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-11-06 John David Anglin <dave@hiauly1.hia.nrc.ca> + + * pa64-hpux.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Define. + 2002-11-06 Alexandre Oliva <aoliva@redhat.com> * config/mips/mips.md (call_value_multiple_internal2): Use dla for diff --git a/gcc/config/pa/pa64-hpux.h b/gcc/config/pa/pa64-hpux.h index 2ed1e14..6d9728d 100644 --- a/gcc/config/pa/pa64-hpux.h +++ b/gcc/config/pa/pa64-hpux.h @@ -135,6 +135,21 @@ do { \ #undef STARTFILE_SPEC #define STARTFILE_SPEC "%{!shared: %{!symbolic: crt0.o%s}}" + +/* Since we are not yet using .init and .fini sections, we need to + explicitly arrange to run the global constructors and destructors. + HPUX 11 has ldd and we use it to determine the dependencies of + dynamic objects. It might be possible to use the ld options for + running initializers and terminators and thereby avoid the necessity + of running ldd, but unfortunately the options are different for + the two linkers. */ +#define LDD_SUFFIX "/usr/ccs/bin/ldd" +/* Skip to first '>' then advance to '/' at the beginning of the filename. */ +#define PARSE_LDD_OUTPUT(PTR) \ +do { \ + while (*PTR != '>') PTR++; \ + while (*PTR != '/') PTR++; \ +} while (0) #endif /* Switch into a generic section. */ |