summaryrefslogtreecommitdiffstats
path: root/libasm/asm_newscn.c
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2005-08-03 02:05:39 +0000
committerUlrich Drepper <[email protected]>2005-08-03 02:05:39 +0000
commita38998e815ccde5d90ff0800c31da255eb3430d3 (patch)
treee5f035b73eeaf4033f159351ecad375f63d3a0aa /libasm/asm_newscn.c
parentef9c9c8fca98a8f9b6aa7c3604ba47e74094e181 (diff)
Add some patches from the disasm-branch branch.
The asm_begin interface changed. In text mode output is really written to the file.
Diffstat (limited to 'libasm/asm_newscn.c')
-rw-r--r--libasm/asm_newscn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libasm/asm_newscn.c b/libasm/asm_newscn.c
index 75890a60..7e585325 100644
--- a/libasm/asm_newscn.c
+++ b/libasm/asm_newscn.c
@@ -1,5 +1,5 @@
/* Create new section in output file.
- Copyright (C) 2002 Red Hat, Inc.
+ Copyright (C) 2002, 2005 Red Hat, Inc.
Written by Ulrich Drepper <[email protected]>, 2002.
This program is Open Source software; you can redistribute it and/or
@@ -81,7 +81,8 @@ text_newscn (AsmScn_t *result, GElf_Word type, GElf_Xword flags)
/* Terminate the string. */
*wp = '\0';
- printf ("\t.section \"%s\"%s%s\n", result->name, flagstr, typestr);
+ fprintf (result->ctx->out.file, "\t.section \"%s\"%s%s\n",
+ result->name, flagstr, typestr);
return result;
}