Commit Graph

187 Commits

Author SHA1 Message Date
christos
c2dcc0c09c Don't make crunch binaries PIE 2016-05-29 16:12:58 +00:00
matt
cac6d59cc3 Use :Q instead of " to quote make vars DBG and LDSTATIC 2015-05-16 02:33:12 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
matt
cbff955678 Use OBJECT_FMTS from <bsd.own.mk> 2014-03-02 03:42:50 +00:00
matt
01097770dd Recognize coldfire 2014-01-26 18:24:29 +00:00
martin
65dddd35c0 Remove .note.netbsd.mcmodel and .note.netbsd.pax from the chrunched binaries.
We don't know wether the former would make sense (as currently used, it never
makes sense for static binaries) and we can not conclude safe PAX flags from
combined binaries.
2014-01-04 08:58:51 +00:00
wiz
a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
joerg
f43bb6a704 Document section stripping. 2013-06-10 19:40:53 +00:00
joerg
4619e36982 Strip .eh_frame and .eh_frame_hdr from crunched binaries. 2013-06-10 18:27:30 +00:00
roy
258cf0abec Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
2012-04-21 12:27:24 +00:00
wiz
1ac719d147 Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
joerg
1009d03daf static + __dead 2011-08-30 23:10:45 +00:00
christos
7aac162c51 Make this produce proper ansi c and knf. 2011-05-15 21:28:51 +00:00
christos
d61830c284 pass LDSTATIC to recursive makes. 2010-04-24 17:58:40 +00:00
christos
cf1f9ba391 move LDSTATIC before the includes because the rules need it early for
conditionals.
2010-04-21 14:58:10 +00:00
kiyohara
5a06e069fd Fix a bug.
always mkdir for 'objs' and 'objdir' when NEW_TOOLCHAIN.
2010-01-09 06:37:57 +00:00
uebayasi
fce6fcbb2c Teach crunchide(1) that mips64e[bl] is 64-bit ELF. 2009-12-14 14:01:10 +00:00
pooka
70d4493c77 Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs.  User functionality remains the same.
2009-12-05 20:11:01 +00:00
he
d1c69ed983 Move the include of <a.out.h> and <sys/exec_aout.h> until after
we have determined that the current machine actually supports a.out.
2009-08-20 17:40:26 +00:00
he
cff5554191 Remove the include of <a.out.h>, since these files do not appear
to need it.  Fixes build for mips ports.
Also fix a comment: crunchide walks "the symbol table", not
just "the a.out symbol table".
2009-08-20 17:39:51 +00:00
martin
73946a9cc9 More missing <sys/exec_aout.h> includes 2009-08-16 18:15:28 +00:00
tsutsui
e7f34be0d2 Fix another -Wsign-compare issue.
XXX: is it really worth to keep non native aout/coff/ecoff support here?
2009-04-18 11:30:30 +00:00
dogcow
85e7c15ca3 more signed/unsigned comparison fixes 2009-04-15 02:07:20 +00:00
lukem
9a472d38d4 Fix WARNS=4 issues (-Wshadow -Wcast-qual) 2009-04-14 22:03:07 +00:00
lukem
5b2a99f633 fix -Wsign-compare issues 2009-04-11 12:53:52 +00:00
joerg
8deda0e429 Use paragraph breaks before notes, not just line breaks. 2009-03-12 12:36:48 +00:00
apb
cd5c0f944d In shell scripts invoked during a build, and in crunchgen, use ${AWK}
instead of plain "awk".  The Makefiles that invoke these scripts
or programs will pass AWK=${HOST_AWK:Q}.
2008-10-19 22:10:04 +00:00
jnemeth
b408277b4f PR/36867 - Zafer Aydogan -- trsp is no longer 2007-08-30 18:56:51 +00:00
scw
5764a76889 Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:35:21 +00:00
wiz
a45316f7a5 Bump date for previous. 2006-10-26 10:49:35 +00:00
freza
57dc9ea382 Treat multiple
SPECIAL prog {objs,objpaths,keepsymbols} itemX

lines (where "prog" is fixed) in crunchgen configuration the same as

  SPECIAL prog {objs,objpaths,keepsymbols} item1 ... itemN

OK by David Laight
2006-10-18 21:20:44 +00:00
christos
4623faa261 We only need libutil in native mode. 2006-08-29 12:50:49 +00:00
christos
cdab3a7a06 More programs using efun. 2006-08-26 18:17:41 +00:00
ross
bcc364ea13 Check for powerpc64 when enumerating MACHINE_ARCH 2006-07-08 05:43:35 +00:00
christos
afe552b7f1 detect overflow and exit with an error. 2006-06-13 17:18:56 +00:00
christos
e1168b9564 PR/33698: Kevin Massey: use strlcpy/strlcat to avoid stack overwrites. 2006-06-11 16:11:53 +00:00
simonb
2f8c495ce2 Fix problems with program names with a "-" in them, where crunchgen was
outputting the original program name for the stub name instead of the
mangled name.

From Mikolaj Golub on tech-embed.
2006-06-02 10:11:56 +00:00
mrg
2ed99b6c90 need <stdlib.h> for exit(3). 2006-05-10 21:34:20 +00:00
tsutsui
a46df0d20b Don't use data in freed stack. 2006-01-13 16:36:25 +00:00
jmc
1bd5227b67 Make dependency checking for the pull-over make's actually work.
The make depend needs to be it's own separate make so it's done before the
main make runs. This also fixes issues w. -j breaking on 'depend <target'.

In addition, force the sub cross-over make to always run or otherwise it'll
never check dependencies once a valid foo.cro has been created.

Bump to 20050208
2005-02-10 16:03:04 +00:00
christos
36eef77064 Revert part of previous [remove cd to objdir] and bump the crunchdate.
Make has been fixed. The cd was in the wrong place anyway, it should
immediately follow ${MAKE}, so it did not work as expected.
2005-01-31 23:48:38 +00:00
lukem
ebb5895a82 Explicitly cd to the .OBJDIR in the ${PROG}.strip target.
This fixes the "make -j N dependall" build issues people were
seeing in src/rescue, that appears to have been introduced
in rev 1.62.

Use the MAKEVERBOSE macros (if present) to print the pretty message.

Set the CRUNCH_VERSION to 20050130.
2005-01-30 23:04:33 +00:00
dsl
43371ff1ac Add (unsigned char) cast to ctype functions 2004-10-30 17:17:35 +00:00
wiz
ab90f76ed3 Sync usage with man page (sort, add -O). 2004-09-25 21:48:15 +00:00
wiz
7a57b6bd09 Sort options in SYNOPSIS and in description; use more mdoc macros. 2004-09-25 21:47:53 +00:00
dsl
6e443a613f Change the way crunchgen works when doing 'reachover' builds.
Instead of trying to identify all the .o files that make each target rely
on the targets own Makefile having a program.ro target that will compile
all the objects and link them into a single relocatable.
Rename each program's 'main' to '_crunched_<prog>_stub' instead of compiling
a small piece of C.
The old behaviour can be forced by specifying -O, and is also done if the
config file specifies 'objs' or 'objpaths'.
As well as simplifying the logic, this means you only get a single 'prog.ro
is up to date' message for each program during the build.
2004-09-25 20:43:47 +00:00
dsl
eb23ef8ce9 Use a single awk command (instead of awk and a lot of greps) to generate
the list of symbols to be renamed.
Rename symbols to <symbol>$$from%%<prog> (not _$$hide$$<prog>.cro$$<symbol>)
so that gdb reports the symbol name instead of  "_" (the $$ is treated as a
C++ name mangle and nothing after it is output by default).
2004-09-25 20:21:57 +00:00
dsl
8e4e69acab Whitespace police:
if, for and while are not functions,
put controlled statements of if and while onto separate lines
put function names into column 1
2004-09-25 19:21:07 +00:00
dsl
ef0ef24324 Remove the always defined RENAME_SYMS and the code that would be
compiled were it defined.
That code is out of date, doesn't work on some archs, and is in the way
of another commit.
2004-09-25 18:32:37 +00:00
wiz
cfb72c3de3 Adapt to /usr/share/misc/style.
Sync usage with man page.
Use getprogname()/setprogname().
2004-08-24 12:25:26 +00:00