public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: [PATCH,AIX] Enable libiberty to read AIX XCOFF
@ 2017-06-06 23:25 David Edelsohn
  2017-06-06 23:52 ` DJ Delorie
  2017-06-07 14:23 ` REIX, Tony
  0 siblings, 2 replies; 6+ messages in thread
From: David Edelsohn @ 2017-06-06 23:25 UTC (permalink / raw)
  To: REIX, TONY, Ian Taylor; +Cc: SARTER, MATTHIEU (ext), GCC Patches

Tony,

This patch generally looks good to me -- it clearly is an incremental
improvement.  One of the libiberty maintainers, such as Ian, needs to
approve the patch.

https://gcc.gnu.org/ml/gcc-patches/2017-05/msg01181.html

+      if (strcmp (name, ".text") == 0)
+        textptr = scnptr;

The above code does not seem very robust.  What if the application is
compiled with -ffunction-sections so the text section is not named
".text"?

+      if (strtab == NULL)
+        {
+             XDELETEVEC (symtab);
+          XDELETEVEC (scnbuf);
+          return errmsg;

The first XDELETEVEC (symtab) is indented incorrectly and should be fixed.

Thanks, David

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

end of thread, other threads:[~2017-06-07 15:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-06 23:25 [PATCH,AIX] Enable libiberty to read AIX XCOFF David Edelsohn
2017-06-06 23:52 ` DJ Delorie
2017-06-07 13:16   ` REIX, Tony
2017-06-07 15:37     ` [PATCH,AIX] " DJ Delorie
2017-06-07 14:23 ` REIX, Tony
2017-06-07 14:43   ` [PATCH,AIX] " David Edelsohn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).