Michael Tautschnig <m...@debian.org> writes:

> I'm not sure where such behaviour would be specified for a unix
> linker!?

Not sure, either. It is described quite clearly in Levine's "Linkers and
Loaders" (see sec 6.4). Which is recommended reading for anything
linker-related.

I haven't tried checking posix specs, but I imagine it might be
specified there.

> gcc  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
> -Werror=format-security -ggdb3 -Wall -W  -Wmissing-prototypes 
> -Wmissing-declarations -Wstrict-prototypes  -Waggregate-return  
> -Wpointer-arith -Wbad-function-cast -Wnested-externs  -Wl,-z,defs 
> -Wl,--as-needed -Wl,-z,relro -o ex3 ex3.o ../libargp.a

I'm not entirely sure what the specified linker flags mean, but order
looks correct. What was the error message, precisely?

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to