#include "ld.h"
#include "ldmisc.h"
#include "ldlang.h"
-
+#include "ldlex.h"
/* IMPORTS */
extern char *program_name;
if (symbol) {
asection *section = symbol->section;
if ((symbol->flags & BSF_UNDEFINED) == 0) {
- char *section_name = section == (asection *)NULL ?
+ CONST char *section_name = section == (asection *)NULL ?
"absolute" : section->name;
fprintf(stderr,"%s (%s)", symbol->name, section_name);
}
else {
int ch;
int n = 0;
- fprintf(stderr,"command (before <");
+ fprintf(stderr,"command (just before \"");
ch = lex_input();
while (ch != 0 && n < 10) {
fprintf(stderr, "%c", ch);
ch = lex_input();
n++;
}
- fprintf(stderr,")");
+ fprintf(stderr,"\")");
}
break;
case 'C':
{
- char *filename;
- char *functionname;
+ CONST char *filename;
+ CONST char *functionname;
unsigned int linenumber;
bfd *abfd = va_arg(arg, bfd *);
asection *section = va_arg(arg, asection *);
whose contents concatenate those of S1, S2, S3. */
char *
-concat (s1, s2, s3)
- char *s1, *s2, *s3;
+DEFUN(concat, (s1, s2, s3),
+ CONST char *s1 AND
+ CONST char *s2 AND
+ CONST char *s3)
{
size_t len1 = strlen (s1);
size_t len2 = strlen (s2);
-char *buystring(x)
-char *x;
+char *DEFUN(buystring,(x),
+ CONST char *CONST x)
{
size_t l = strlen(x)+1;
char *r = ldmalloc(l);