public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Unit-at-a-time breaks siglist/errlist compat symbols
@ 2003-12-29 13:32 Andreas Schwab
  2003-12-29 18:01 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2003-12-29 13:32 UTC (permalink / raw)
  To: libc-hacker

-funit-at-a-time reorders the assembler output of siglist.c/errlist.c,
so that the aliases are defined before the actual data.  This breaks
the compat symbols, because the assembler must defer resolving them
until it writes the output, and overwrites st_size when they are
finally resolved.

Andreas.

2003-12-29  Andreas Schwab  <schwab@suse.de>

	* stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
	$(fno_unit_at_a_time) to avoid reordering assembler output.

--- stdio-common/Makefile.~1.87.~	2003-11-28 22:26:36.000000000 +0100
+++ stdio-common/Makefile	2003-12-29 14:19:51.667858840 +0100
@@ -87,6 +87,8 @@ CFLAGS-tempname.c = -fexceptions
 CFLAGS-psignal.c = -fexceptions
 CFLAGS-vprintf.c = -fexceptions
 CFLAGS-cuserid.c = -fexceptions
+CFLAGS-errlist.c = $(fno-unit-at-a-time)
+CFLAGS-siglist.c = $(fno-unit-at-a-time)
 
 tst-sscanf-ENV = LOCPATH=$(common-objpfx)localedata
 tst-swprintf-ENV = LOCPATH=$(common-objpfx)localedata

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: Unit-at-a-time breaks siglist/errlist compat symbols
  2003-12-29 13:32 Unit-at-a-time breaks siglist/errlist compat symbols Andreas Schwab
@ 2003-12-29 18:01 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2003-12-29 18:01 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: libc-hacker

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Schwab wrote:

> 	* stdio-common/Makefile (CFLAGS-errlist.c, CFLAGS-siglist.c): Add
> 	$(fno_unit_at_a_time) to avoid reordering assembler output.

Applied.

- -- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/8GuE2ijCOnn/RHQRArCaAKC1JMynRf+wqKMy+nUZSDQaQnPaRgCbBar7
iQLVDv6ZdBikoeNih4HUxH4=
=yiX7
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2003-12-29 18:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-29 13:32 Unit-at-a-time breaks siglist/errlist compat symbols Andreas Schwab
2003-12-29 18:01 ` Ulrich Drepper

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).