All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/symbols: document binutils commits for issues needing workarounds so far
@ 2015-12-16  7:53 Jan Beulich
  2015-12-16  9:58 ` Ian Campbell
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2015-12-16  7:53 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Campbell, Keir Fraser, Ian Jackson, Tim Deegan

[-- Attachment #1: Type: text/plain, Size: 1487 bytes --]

Also the issue 3rd issue mentioned in commit d37d63d4b5 ("symbols:
prefix static symbols with their source file names") has been fixed by
binutils commit 270f824531 (also expected to appear in 2.27).

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/tools/symbols.c
+++ b/xen/tools/symbols.c
@@ -105,15 +105,18 @@ static int read_symbol(FILE *in, struct
 
 	sym = strrchr(str, '.');
 	if (strcasecmp(type, "FILE") == 0 ||
-	    (/* GNU nm prior to XXX doesn't produce a type for EFI binaries. */
+	    (/*
+	      * GNU nm prior to binutils commit 552e55ed06 (expected to
+	      * appear in 2.27) doesn't produce a type for EFI binaries.
+	      */
 	     input_format == fmt_sysv && !*type && stype == '?' && sym &&
 	     sym[1] && strchr("cSsoh", sym[1]) && !sym[2])) {
 		/*
-		 * gas prior to XXX outputs symbol table entries resulting
-		 * from .file in reverse order. If we get two consecutive file
-		 * symbols, prefer the first one if that names an object file
-		 * or has a directory component (to cover multiply compiled
-		 * files).
+		 * gas prior to binutils commit fbdf9406b0 (expected to appear
+		 * in 2.27) outputs symbol table entries resulting from .file
+		 * in reverse order. If we get two consecutive file symbols,
+		 * prefer the first one if that names an object file or has a
+		 * directory component (to cover multiply compiled files).
 		 */
 		bool multi = strchr(str, '/') || (sym && sym[1] == 'o');
 



[-- Attachment #2: symbols-document-binutils-commits.patch --]
[-- Type: text/plain, Size: 1565 bytes --]

tools/symbols: document binutils commits for issues needing workarounds so far

Also the issue 3rd issue mentioned in commit d37d63d4b5 ("symbols:
prefix static symbols with their source file names") has been fixed by
binutils commit 270f824531 (also expected to appear in 2.27).

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/tools/symbols.c
+++ b/xen/tools/symbols.c
@@ -105,15 +105,18 @@ static int read_symbol(FILE *in, struct
 
 	sym = strrchr(str, '.');
 	if (strcasecmp(type, "FILE") == 0 ||
-	    (/* GNU nm prior to XXX doesn't produce a type for EFI binaries. */
+	    (/*
+	      * GNU nm prior to binutils commit 552e55ed06 (expected to
+	      * appear in 2.27) doesn't produce a type for EFI binaries.
+	      */
 	     input_format == fmt_sysv && !*type && stype == '?' && sym &&
 	     sym[1] && strchr("cSsoh", sym[1]) && !sym[2])) {
 		/*
-		 * gas prior to XXX outputs symbol table entries resulting
-		 * from .file in reverse order. If we get two consecutive file
-		 * symbols, prefer the first one if that names an object file
-		 * or has a directory component (to cover multiply compiled
-		 * files).
+		 * gas prior to binutils commit fbdf9406b0 (expected to appear
+		 * in 2.27) outputs symbol table entries resulting from .file
+		 * in reverse order. If we get two consecutive file symbols,
+		 * prefer the first one if that names an object file or has a
+		 * directory component (to cover multiply compiled files).
 		 */
 		bool multi = strchr(str, '/') || (sym && sym[1] == 'o');
 

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] tools/symbols: document binutils commits for issues needing workarounds so far
  2015-12-16  7:53 [PATCH] tools/symbols: document binutils commits for issues needing workarounds so far Jan Beulich
@ 2015-12-16  9:58 ` Ian Campbell
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2015-12-16  9:58 UTC (permalink / raw)
  To: Jan Beulich, xen-devel; +Cc: Keir Fraser, Ian Jackson, Tim Deegan

On Wed, 2015-12-16 at 00:53 -0700, Jan Beulich wrote:
> Also the issue 3rd issue mentioned in commit d37d63d4b5 ("symbols:
> prefix static symbols with their source file names") has been fixed by
> binutils commit 270f824531 (also expected to appear in 2.27).
> 


> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Acked-by: Ian Campbell <ian.campbell@citrix.com>


> --- a/xen/tools/symbols.c
> +++ b/xen/tools/symbols.c
> @@ -105,15 +105,18 @@ static int read_symbol(FILE *in, struct
>  
>  	sym = strrchr(str, '.');
>  	if (strcasecmp(type, "FILE") == 0 ||
> -	    (/* GNU nm prior to XXX doesn't produce a type for EFI
> binaries. */
> +	    (/*
> +	      * GNU nm prior to binutils commit 552e55ed06 (expected to
> +	      * appear in 2.27) doesn't produce a type for EFI binaries.
> +	      */
>  	     input_format == fmt_sysv && !*type && stype == '?' && sym
> &&
>  	     sym[1] && strchr("cSsoh", sym[1]) && !sym[2])) {
>  		/*
> -		 * gas prior to XXX outputs symbol table entries
> resulting
> -		 * from .file in reverse order. If we get two
> consecutive file
> -		 * symbols, prefer the first one if that names an object
> file
> -		 * or has a directory component (to cover multiply
> compiled
> -		 * files).
> +		 * gas prior to binutils commit fbdf9406b0 (expected to
> appear
> +		 * in 2.27) outputs symbol table entries resulting from
> .file
> +		 * in reverse order. If we get two consecutive file
> symbols,
> +		 * prefer the first one if that names an object file or
> has a
> +		 * directory component (to cover multiply compiled
> files).
>  		 */
>  		bool multi = strchr(str, '/') || (sym && sym[1] == 'o');
>  
> 
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-16  9:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-16  7:53 [PATCH] tools/symbols: document binutils commits for issues needing workarounds so far Jan Beulich
2015-12-16  9:58 ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.