{
FILE *stream = fopen (fname, "r");
char *line;
+ int skip_next_line = 0;
while ((line = tfgets (stream)) != NULL)
{
char *p = line, *q;
symbol *sym;
int end;
+ int ok = 0;
+
+ if (skip_next_line)
+ continue;
while (*p && ISSPACE ((unsigned char) *p))
++p;
demangled *dem = 0;
q = 0;
+ /* On darwin9, we look for "foo" referenced from:\n.*\n */
+ if (strcmp (oldq, "referenced from:") == 0)
+ {
+ /* We have to remember that we found a symbol to tweak. */
+ ok = 1;
+
+ /* We actually want to start from the first word on the line. */
+ oldq = p;
+
+ /* Since the format is multiline, we have to skip the next line. */
+ skip_next_line = 1;
+ }
+
/* First try `GNU style'. */
p = strchr (oldq, '`');
if (p)
/* We need to check for certain error keywords here, or we would
mistakenly use GNU ld's "In function `foo':" message. */
- if (q && (strstr (oldq, "ndefined")
+ if (q && (ok
+ || strstr (oldq, "ndefined")
|| strstr (oldq, "nresolved")
|| strstr (oldq, "nsatisfied")
|| strstr (oldq, "ultiple")))