aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmisc.c
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-04-15 15:27:15 +0000
committerSteve Chamberlain <steve@cygnus>1991-04-15 15:27:15 +0000
commit99fe4553606e9be16e0d3878070086ba0c629d77 (patch)
tree6a2b3ec66d49ab11785d440dfcc2d3d9506bfd6b /ld/ldmisc.c
parent9846338e68f0951443690e50cb678082a86be57e (diff)
downloadgdb-99fe4553606e9be16e0d3878070086ba0c629d77.zip
gdb-99fe4553606e9be16e0d3878070086ba0c629d77.tar.gz
gdb-99fe4553606e9be16e0d3878070086ba0c629d77.tar.bz2
Merges from Intel.
Chrisb bug fixes.
Diffstat (limited to 'ld/ldmisc.c')
-rw-r--r--ld/ldmisc.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/ld/ldmisc.c b/ld/ldmisc.c
index f7fc9e9..9ae7515 100644
--- a/ld/ldmisc.c
+++ b/ld/ldmisc.c
@@ -93,7 +93,7 @@ va_dcl
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);
}
@@ -169,8 +169,8 @@ va_dcl
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 *);
@@ -235,8 +235,10 @@ unsigned int line;
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);