diff options
| author | Ulrich Drepper <[email protected]> | 2005-08-03 02:05:39 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2005-08-03 02:05:39 +0000 |
| commit | a38998e815ccde5d90ff0800c31da255eb3430d3 (patch) | |
| tree | e5f035b73eeaf4033f159351ecad375f63d3a0aa /libasm/asm_newscn.c | |
| parent | ef9c9c8fca98a8f9b6aa7c3604ba47e74094e181 (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.c | 5 |
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; } |
