(NM_FLAGS): Define to "-h" (SysV output, no header).

(COLLECT_QUALIFY_MATCH): Define to ignore all symbols of types other
        than code.
        (REAL_NM_FILE_NAME): Define to "/bin/nm" to force use of the vendor nm.

From-SVN: r8316
This commit is contained in:
Jason Merrill 1994-10-19 22:09:20 +00:00
parent 05ca35c718
commit f311b28076

View File

@ -48,6 +48,25 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
pretend they are `extern "C"'. */ pretend they are `extern "C"'. */
#define NO_IMPLICIT_EXTERN_C #define NO_IMPLICIT_EXTERN_C
/* The HPUX linker duplicates all text symbols when given -E; this confuses /* We need to use the vendor nm for collect, since GNU nm isn't clever
collect2. */ enough to distinguish between the duplicate symbols used with shared
#define COLLECT_SUPPRESS_OPTIONS "E" libraries under HPUX. */
#define REAL_NM_FILE_NAME "/bin/nm"
/* To the hpux nm, -p means BSD-style output; we don't want that. */
#define NM_FLAGS "-h"
/* When dealing with shared libraries, the hpux ld can create duplicate
symbols. The fourth field of nm's output distinguishes between the real
one (type "code") and the fake one (type "entry"). */
#define COLLECT_QUALIFY_MATCH \
{ \
char *p = end; \
int cnt = 0; \
for (; *p != '\n';) \
if (*p++ == '|' \
&& ++cnt == 3) \
break; \
if (*p != 'c') \
continue; \
}