mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-05 19:07:07 +00:00
6719c75b99
by default. Don't the WP_TEXT and D_PAGED flags of output_bfd here; it's too late, so set it when output_bfd is created (in ldlang.c). Also fix setting of EXEC_P flag * ldlang.c (ldlang_open_output): Set output_bfd->flags here. * ldlang.c: Remove some duplicate extern declarations. * ldgram.y: Fixes to -N and -n options. * Makefile.in: Recognize upper case letters in sed script to remove assignments from script files. * ldtemplate: Don't assukme that -N or -n options imply use of -r script. * mkscript.c: Tweaking to correctly handle \n and \\ in input.
24 lines
388 B
C
24 lines
388 B
C
#include <stdio.h>
|
|
|
|
int
|
|
main()
|
|
{
|
|
int ch;
|
|
ch = getchar();
|
|
printf("/* Generated through mkscript */\n");
|
|
printf("\"{ \\\n");
|
|
while (ch != EOF) {
|
|
if (ch == '\"' || ch == '\\' || ch == '\'') {
|
|
putchar('\\');
|
|
putchar(ch);
|
|
}
|
|
else { if (ch == '\n')
|
|
fputs("\\n\\", stdout);
|
|
putchar(ch);
|
|
}
|
|
ch = getchar();
|
|
}
|
|
printf("}\"\n");
|
|
return 0;
|
|
}
|