osdir.com
mailing list archive
Mozy Online Backup: 2GB Free. Automatic. Secure.

Subject: [patch] fix AC_DEFUN() warning - msg#00006

List: lang.nasm.devel

Date: Prev Next Index Thread: Prev Next Index
fix a simple underquoted warning
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Index: configure.in
===================================================================
RCS file: /cvsroot/nasm/nasm/configure.in,v
retrieving revision 1.14
diff -u -p -r1.14 configure.in
--- configure.in 21 Jun 2007 19:00:13 -0000 1.14
+++ configure.in 6 Jul 2007 05:22:30 -0000
@@ -6,7 +6,7 @@ AC_INIT(config.h.in)
AC_CONFIG_HEADERS(config.h)

dnl Check for broken VPATH handling on older NetBSD makes.
-AC_DEFUN(AC_PROG_MAKE_VPATHOK,
+AC_DEFUN([AC_PROG_MAKE_VPATHOK],
[AC_MSG_CHECKING(whether ${MAKE-make} has sane VPATH handling)
set dummy ${MAKE-make}; ac_make=`echo "[$]2" | sed 'y%./+-%__p_%'`
AC_CACHE_VAL(ac_cv_prog_make_vpathok,
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
Nasm-devel mailing list
Nasm-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nasm-devel
Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

nasm-devel@xxxxxxxxxxxxxxxxxxxxx様へ 最新【イベント情報】

■コミュニティー事務局より完全無料【イベント情報】のお知らせです!!■ 各地域でアダルトオフ会が行われています!! nasm-devel@xxxxxxxxxxxxxxxxxxxxx様へ 週末は掲示板にてパートナーを探してみませんか? ★ガチンコ大人のヌキヌキパーティー【男女 締め切り】 ☆露出写真撮影会(雨天決行)【男女 募集中】 ★公園のトイレでエッチしまくりヌキヌキツアー(雨天中止)【男女 募集中】 ☆M男くんと遊ぼう(SM調教募集掲示板にて)【M男性 募集中 ※S女性の締め切りは終了しました】 ★倖●來●似のキャバ嬢【あや・23歳】ちゃん 集団ぶっかけイベント 【男性 120名募集中】 ☆ガチンコフェラ抜きヌキヌキトーナメントin東京 【男女 募集中】 ★セックスフレンド争奪 第5回PRIDEヌキヌキグランプリ 【男女 募集中】 ★ガチンコ大人のヌキヌキバスツアー 【男女 募集中】 詳しい内容・情報は、各パーソナルサービスセンターにて募集中。イベント担当から参加メールが届きます。 ご利用・参加は無料ですが、18歳未満の方はご利用になれません。 ↓参加型0円パーソナル入り口 http://s-per.com/zsan?room=015 【参加型0円パーソナル】は【男女共完全無料】でお使いになれます。 アダルトイベントのオフ会は、毎月様々なイベントを開催されています 過去のイベントの画像・動画も観れます http://s-per.com/zsan?room=015 気になったイベントへ参加してみませんか? ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/

Next Message by Date: click to view message preview

[patch ping] add support for elf symbol visibility

i posted this about a year and a half ago and been using it in Gentoo ever since ... hopefully i can get it merged now ;) -mike signature.asc Description: This is a digitally signed message part. Index: output/outelf32.c =================================================================== RCS file: /cvsroot/nasm/nasm/output/outelf32.c,v retrieving revision 1.3 diff -u -p -r1.3 outelf32.c --- output/outelf32.c 29 Apr 2007 20:57:53 -0000 1.3 +++ output/outelf32.c 6 Jul 2007 05:33:12 -0000 @@ -51,6 +51,7 @@ struct Symbol { int32_t strpos; /* string table position of name */ int32_t section; /* section ID of the symbol */ int type; /* symbol type */ + int other; /* symbol visibility */ int32_t value; /* address, or COMMON variable align */ int32_t size; /* size of symbol */ int32_t globnum; /* symbol table offset if global */ @@ -115,9 +116,15 @@ extern struct ofmt of_elf; #define SYM_SECTION 0x04 #define SYM_GLOBAL 0x10 +#define SYM_NOTYPE 0x00 #define SYM_DATA 0x01 #define SYM_FUNCTION 0x02 +#define STV_DEFAULT 0 +#define STV_INTERNAL 1 +#define STV_HIDDEN 2 +#define STV_PROTECTED 3 + #define GLOBAL_TEMP_BASE 16 /* bigger than any constant sym id */ #define SEG_ALIGN 16 /* alignment of sections in file */ @@ -495,6 +502,7 @@ static void elf_deflabel(char *name, int sym->strpos = pos; sym->type = is_global ? SYM_GLOBAL : 0; + sym->other = STV_DEFAULT; sym->size = 0; if (segment == NO_SEG) sym->section = SHN_ABS; @@ -566,17 +574,38 @@ static void elf_deflabel(char *name, int sects[sym->section - 1]->gsyms = sym; if (special) { - int n = strcspn(special, " "); + int n = strcspn(special, " \t"); if (!nasm_strnicmp(special, "function", n)) sym->type |= SYM_FUNCTION; else if (!nasm_strnicmp(special, "data", n) || !nasm_strnicmp(special, "object", n)) sym->type |= SYM_DATA; + else if (!nasm_strnicmp(special, "notype", n)) + sym->type |= SYM_NOTYPE; else error(ERR_NONFATAL, "unrecognised symbol type `%.*s'", n, special); - if (special[n]) { + special += n; + + while (isspace(*special)) + ++special; + if (*special) { + n = strcspn(special, " \t"); + if (!nasm_strnicmp(special, "default", n)) + sym->other = STV_DEFAULT; + else if (!nasm_strnicmp(special, "internal", n)) + sym->other = STV_INTERNAL; + else if (!nasm_strnicmp(special, "hidden", n)) + sym->other = STV_HIDDEN; + else if (!nasm_strnicmp(special, "protected", n)) + sym->other = STV_PROTECTED; + else + n = 0; + special += n; + } + + if (*special) { struct tokenval tokval; expr *e; int fwd = FALSE; @@ -1115,7 +1144,8 @@ static struct SAA *elf_build_symtab(int3 WRITELONG(p, sym->strpos); WRITELONG(p, sym->value); WRITELONG(p, sym->size); - WRITESHORT(p, sym->type); /* local non-typed thing */ + WRITECHAR(p, sym->type); /* local non-typed thing */ + WRITECHAR(p, sym->other); WRITESHORT(p, sym->section); saa_wbytes(s, entry, 16L); *len += 16; @@ -1133,7 +1163,8 @@ static struct SAA *elf_build_symtab(int3 WRITELONG(p, sym->strpos); WRITELONG(p, sym->value); WRITELONG(p, sym->size); - WRITESHORT(p, sym->type); /* global non-typed thing */ + WRITECHAR(p, sym->type); /* global non-typed thing */ + WRITECHAR(p, sym->other); WRITESHORT(p, sym->section); saa_wbytes(s, entry, 16L); *len += 16; Index: output/outelf64.c =================================================================== RCS file: /cvsroot/nasm/nasm/output/outelf64.c,v retrieving revision 1.4 diff -u -p -r1.4 outelf64.c --- output/outelf64.c 4 May 2007 18:47:16 -0000 1.4 +++ output/outelf64.c 6 Jul 2007 05:33:13 -0000 @@ -71,6 +71,7 @@ struct Symbol { int32_t strpos; /* string table position of name */ int32_t section; /* section ID of the symbol */ int type; /* symbol type */ + int other; /* symbol visibility */ int32_t value; /* address, or COMMON variable align */ int32_t size; /* size of symbol */ int32_t globnum; /* symbol table offset if global */ @@ -126,9 +127,15 @@ extern struct ofmt of_elf64; #define SYM_SECTION 0x04 #define SYM_GLOBAL 0x10 +#define SYM_NOTYPE 0x00 #define SYM_DATA 0x01 #define SYM_FUNCTION 0x02 +#define STV_DEFAULT 0 +#define STV_INTERNAL 1 +#define STV_HIDDEN 2 +#define STV_PROTECTED 3 + #define GLOBAL_TEMP_BASE 16 /* bigger than any constant sym id */ #define SEG_ALIGN 16 /* alignment of sections in file */ @@ -507,6 +514,7 @@ static void elf_deflabel(char *name, int sym->strpos = pos; sym->type = is_global ? SYM_GLOBAL : 0; + sym->other = STV_DEFAULT; sym->size = 0; if (segment == NO_SEG) sym->section = SHN_ABS; @@ -578,17 +586,38 @@ static void elf_deflabel(char *name, int sects[sym->section - 1]->gsyms = sym; if (special) { - int n = strcspn(special, " "); + int n = strcspn(special, " \t"); if (!nasm_strnicmp(special, "function", n)) sym->type |= SYM_FUNCTION; else if (!nasm_strnicmp(special, "data", n) || !nasm_strnicmp(special, "object", n)) sym->type |= SYM_DATA; + else if (!nasm_strnicmp(special, "notype", n)) + sym->type |= SYM_NOTYPE; else error(ERR_NONFATAL, "unrecognised symbol type `%.*s'", n, special); - if (special[n]) { + special += n; + + while (isspace(*special)) + ++special; + if (*special) { + n = strcspn(special, " \t"); + if (!nasm_strnicmp(special, "default", n)) + sym->other = STV_DEFAULT; + else if (!nasm_strnicmp(special, "internal", n)) + sym->other = STV_INTERNAL; + else if (!nasm_strnicmp(special, "hidden", n)) + sym->other = STV_HIDDEN; + else if (!nasm_strnicmp(special, "protected", n)) + sym->other = STV_PROTECTED; + else + n = 0; + special += n; + } + + if (*special) { struct tokenval tokval; expr *e; int fwd = FALSE; @@ -1127,7 +1156,8 @@ static struct SAA *elf_build_symtab(int3 continue; p = entry; WRITELONG(p, sym->strpos); - WRITESHORT(p, sym->type); /* local non-typed thing */ + WRITECHAR(p, sym->type); /* local non-typed thing */ + WRITECHAR(p, sym->other); WRITESHORT(p, sym->section); WRITEDLONG(p, (int64_t)sym->value); WRITEDLONG(p, (int64_t)sym->size); @@ -1145,7 +1175,8 @@ static struct SAA *elf_build_symtab(int3 continue; p = entry; WRITELONG(p, sym->strpos); - WRITESHORT(p, sym->type); /* global non-typed thing */ + WRITECHAR(p, sym->type); /* global non-typed thing */ + WRITECHAR(p, sym->other); WRITESHORT(p, sym->section); WRITEDLONG(p, (int64_t)sym->value); WRITEDLONG(p, (int64_t)sym->size); ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/_______________________________________________ Nasm-devel mailing list Nasm-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nasm-devel

Previous Message by Thread: click to view message preview

nasm-devel@xxxxxxxxxxxxxxxxxxxxx様へ 最新【イベント情報】

■コミュニティー事務局より完全無料【イベント情報】のお知らせです!!■ 各地域でアダルトオフ会が行われています!! nasm-devel@xxxxxxxxxxxxxxxxxxxxx様へ 週末は掲示板にてパートナーを探してみませんか? ★ガチンコ大人のヌキヌキパーティー【男女 締め切り】 ☆露出写真撮影会(雨天決行)【男女 募集中】 ★公園のトイレでエッチしまくりヌキヌキツアー(雨天中止)【男女 募集中】 ☆M男くんと遊ぼう(SM調教募集掲示板にて)【M男性 募集中 ※S女性の締め切りは終了しました】 ★倖●來●似のキャバ嬢【あや・23歳】ちゃん 集団ぶっかけイベント 【男性 120名募集中】 ☆ガチンコフェラ抜きヌキヌキトーナメントin東京 【男女 募集中】 ★セックスフレンド争奪 第5回PRIDEヌキヌキグランプリ 【男女 募集中】 ★ガチンコ大人のヌキヌキバスツアー 【男女 募集中】 詳しい内容・情報は、各パーソナルサービスセンターにて募集中。イベント担当から参加メールが届きます。 ご利用・参加は無料ですが、18歳未満の方はご利用になれません。 ↓参加型0円パーソナル入り口 http://s-per.com/zsan?room=015 【参加型0円パーソナル】は【男女共完全無料】でお使いになれます。 アダルトイベントのオフ会は、毎月様々なイベントを開催されています 過去のイベントの画像・動画も観れます http://s-per.com/zsan?room=015 気になったイベントへ参加してみませんか? ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/

Next Message by Thread: click to view message preview

[patch ping] add support for elf symbol visibility

i posted this about a year and a half ago and been using it in Gentoo ever since ... hopefully i can get it merged now ;) -mike signature.asc Description: This is a digitally signed message part. Index: output/outelf32.c =================================================================== RCS file: /cvsroot/nasm/nasm/output/outelf32.c,v retrieving revision 1.3 diff -u -p -r1.3 outelf32.c --- output/outelf32.c 29 Apr 2007 20:57:53 -0000 1.3 +++ output/outelf32.c 6 Jul 2007 05:33:12 -0000 @@ -51,6 +51,7 @@ struct Symbol { int32_t strpos; /* string table position of name */ int32_t section; /* section ID of the symbol */ int type; /* symbol type */ + int other; /* symbol visibility */ int32_t value; /* address, or COMMON variable align */ int32_t size; /* size of symbol */ int32_t globnum; /* symbol table offset if global */ @@ -115,9 +116,15 @@ extern struct ofmt of_elf; #define SYM_SECTION 0x04 #define SYM_GLOBAL 0x10 +#define SYM_NOTYPE 0x00 #define SYM_DATA 0x01 #define SYM_FUNCTION 0x02 +#define STV_DEFAULT 0 +#define STV_INTERNAL 1 +#define STV_HIDDEN 2 +#define STV_PROTECTED 3 + #define GLOBAL_TEMP_BASE 16 /* bigger than any constant sym id */ #define SEG_ALIGN 16 /* alignment of sections in file */ @@ -495,6 +502,7 @@ static void elf_deflabel(char *name, int sym->strpos = pos; sym->type = is_global ? SYM_GLOBAL : 0; + sym->other = STV_DEFAULT; sym->size = 0; if (segment == NO_SEG) sym->section = SHN_ABS; @@ -566,17 +574,38 @@ static void elf_deflabel(char *name, int sects[sym->section - 1]->gsyms = sym; if (special) { - int n = strcspn(special, " "); + int n = strcspn(special, " \t"); if (!nasm_strnicmp(special, "function", n)) sym->type |= SYM_FUNCTION; else if (!nasm_strnicmp(special, "data", n) || !nasm_strnicmp(special, "object", n)) sym->type |= SYM_DATA; + else if (!nasm_strnicmp(special, "notype", n)) + sym->type |= SYM_NOTYPE; else error(ERR_NONFATAL, "unrecognised symbol type `%.*s'", n, special); - if (special[n]) { + special += n; + + while (isspace(*special)) + ++special; + if (*special) { + n = strcspn(special, " \t"); + if (!nasm_strnicmp(special, "default", n)) + sym->other = STV_DEFAULT; + else if (!nasm_strnicmp(special, "internal", n)) + sym->other = STV_INTERNAL; + else if (!nasm_strnicmp(special, "hidden", n)) + sym->other = STV_HIDDEN; + else if (!nasm_strnicmp(special, "protected", n)) + sym->other = STV_PROTECTED; + else + n = 0; + special += n; + } + + if (*special) { struct tokenval tokval; expr *e; int fwd = FALSE; @@ -1115,7 +1144,8 @@ static struct SAA *elf_build_symtab(int3 WRITELONG(p, sym->strpos); WRITELONG(p, sym->value); WRITELONG(p, sym->size); - WRITESHORT(p, sym->type); /* local non-typed thing */ + WRITECHAR(p, sym->type); /* local non-typed thing */ + WRITECHAR(p, sym->other); WRITESHORT(p, sym->section); saa_wbytes(s, entry, 16L); *len += 16; @@ -1133,7 +1163,8 @@ static struct SAA *elf_build_symtab(int3 WRITELONG(p, sym->strpos); WRITELONG(p, sym->value); WRITELONG(p, sym->size); - WRITESHORT(p, sym->type); /* global non-typed thing */ + WRITECHAR(p, sym->type); /* global non-typed thing */ + WRITECHAR(p, sym->other); WRITESHORT(p, sym->section); saa_wbytes(s, entry, 16L); *len += 16; Index: output/outelf64.c =================================================================== RCS file: /cvsroot/nasm/nasm/output/outelf64.c,v retrieving revision 1.4 diff -u -p -r1.4 outelf64.c --- output/outelf64.c 4 May 2007 18:47:16 -0000 1.4 +++ output/outelf64.c 6 Jul 2007 05:33:13 -0000 @@ -71,6 +71,7 @@ struct Symbol { int32_t strpos; /* string table position of name */ int32_t section; /* section ID of the symbol */ int type; /* symbol type */ + int other; /* symbol visibility */ int32_t value; /* address, or COMMON variable align */ int32_t size; /* size of symbol */ int32_t globnum; /* symbol table offset if global */ @@ -126,9 +127,15 @@ extern struct ofmt of_elf64; #define SYM_SECTION 0x04 #define SYM_GLOBAL 0x10 +#define SYM_NOTYPE 0x00 #define SYM_DATA 0x01 #define SYM_FUNCTION 0x02 +#define STV_DEFAULT 0 +#define STV_INTERNAL 1 +#define STV_HIDDEN 2 +#define STV_PROTECTED 3 + #define GLOBAL_TEMP_BASE 16 /* bigger than any constant sym id */ #define SEG_ALIGN 16 /* alignment of sections in file */ @@ -507,6 +514,7 @@ static void elf_deflabel(char *name, int sym->strpos = pos; sym->type = is_global ? SYM_GLOBAL : 0; + sym->other = STV_DEFAULT; sym->size = 0; if (segment == NO_SEG) sym->section = SHN_ABS; @@ -578,17 +586,38 @@ static void elf_deflabel(char *name, int sects[sym->section - 1]->gsyms = sym; if (special) { - int n = strcspn(special, " "); + int n = strcspn(special, " \t"); if (!nasm_strnicmp(special, "function", n)) sym->type |= SYM_FUNCTION; else if (!nasm_strnicmp(special, "data", n) || !nasm_strnicmp(special, "object", n)) sym->type |= SYM_DATA; + else if (!nasm_strnicmp(special, "notype", n)) + sym->type |= SYM_NOTYPE; else error(ERR_NONFATAL, "unrecognised symbol type `%.*s'", n, special); - if (special[n]) { + special += n; + + while (isspace(*special)) + ++special; + if (*special) { + n = strcspn(special, " \t"); + if (!nasm_strnicmp(special, "default", n)) + sym->other = STV_DEFAULT; + else if (!nasm_strnicmp(special, "internal", n)) + sym->other = STV_INTERNAL; + else if (!nasm_strnicmp(special, "hidden", n)) + sym->other = STV_HIDDEN; + else if (!nasm_strnicmp(special, "protected", n)) + sym->other = STV_PROTECTED; + else + n = 0; + special += n; + } + + if (*special) { struct tokenval tokval; expr *e; int fwd = FALSE; @@ -1127,7 +1156,8 @@ static struct SAA *elf_build_symtab(int3 continue; p = entry; WRITELONG(p, sym->strpos); - WRITESHORT(p, sym->type); /* local non-typed thing */ + WRITECHAR(p, sym->type); /* local non-typed thing */ + WRITECHAR(p, sym->other); WRITESHORT(p, sym->section); WRITEDLONG(p, (int64_t)sym->value); WRITEDLONG(p, (int64_t)sym->size); @@ -1145,7 +1175,8 @@ static struct SAA *elf_build_symtab(int3 continue; p = entry; WRITELONG(p, sym->strpos); - WRITESHORT(p, sym->type); /* global non-typed thing */ + WRITECHAR(p, sym->type); /* global non-typed thing */ + WRITECHAR(p, sym->other); WRITESHORT(p, sym->section); WRITEDLONG(p, (int64_t)sym->value); WRITEDLONG(p, (int64_t)sym->size); ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/_______________________________________________ Nasm-devel mailing list Nasm-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nasm-devel
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by