The NetBSD Project

CVS log for src/tools/ctfconvert/Makefile

[BACK] Up to [cvs.NetBSD.org] / src / tools / ctfconvert

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Mon Apr 1 18:33:23 2024 UTC (2 weeks, 2 days ago) by riastradh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored) to selected 1.9 (colored)

elftoolchain: Be consistent about which ELF header files we use.

1. For tools that use elftoolchain: always use elftoolchain's
   elfdefinitions.h.  Don't even think about looking at the host's
   sys/exec_elf.h, which makes no sense and should never happen.

   (ELF tools that don't use elftoolchain, like m68k-elf2coff,
   continue to use nbincludes/sys/exec_elf.h.  But no more nbincludes
   hacks in elftoolchain.)

2. For kernel components (solaris, zfs, dtrace): always use
   sys/exec_elf.h, even in Solaris components via sys/elf.h.
   elfdefinitions.h is not wired up in the kernel build at all.

3. For most userland components that involve libelf: use
   elfdefinitions.h via libelf header files (libelf.h, gelf.h).

   libdtrace in particular requires _all_ R_* reloc type definitions,
   but sys/exec_elf.h brings in only the _current machine's_ R_*
   reloc type definitions.  (While here: Use uintptr_t instead of
   Elf_Addr for pointer-to-integer cast, since Elf_Addr is MD and
   provided only by sys/exec_elf.h, not by elfdefinitions.h.)

   And most userland components using libelf don't rely on any
   properties of the current machine from sys/exec_elf.h, so they can
   use libelf's elfdefinition.h.

   Exceptions:

   - dtrace drti.c relies on link.h -> link_elf.h -> sys/exec_elf.h,
     but it also relies on sys/dtrace.h -> sys/elf.h ->
     elfdefinitions.h like other userland components using sys/elf.h.

   - kdump-ioctl.c uses sys/exec_elf.h directly and sys/dtrace.h ->
     sys/elf.h -> elfdefinitions like other userland components using
     sys/elf.h.

   - t_ptrace_wait.c (via t_ptrace_core_wait.h) uses libelf to parse
     core files, but relies on sys/exec_elf.h for struct
     netbsd_elfcore_procinfo.

   None of these exceptions needs all R_* reloc type definitions, so
   as a workaround, we can just suppress libelf's elfdefinitions.h by
   defining _SYS_ELFDEFINITIONS_H_ and use sys/exec_elf.h in these
   exceptions.

And undo the whole BUILTIN_ELF_HEADERS mistake.  This was:

- half bogus workarounds for missing build_install dependencies in
  tools/Makefile, which are no longer missing now, and
- half futile attempt to use src/sys/sys/exec_elf.h via nbincludes in
  tools involving libelf instead of libelf's elfdefinitions.h, which
  collides.

Longer-term, we may wish to unify sys/exec_elf.h and libelf's
elfdefinitions.h, so we don't have to play these games.

But at least now the games are limited to three .c files (one of
which is generated by Makefile.ioctl-c), rather than haphazardly
applied tree-wide by monstrous kludges in widely used .h files with
broken hackarounds to get the tools build lurching to completion.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 18 19:40:06 2022 UTC (2 years ago) by jkoshy
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Update 'tools/ctf{merge,convert}' to use the new build locations for
'libelf' and 'libdwarf'.

Revision 1.6.8.1 / (download) - annotate - [select for diffs], Sat May 5 19:25:56 2018 UTC (5 years, 11 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) next main 1.7 (colored) to selected 1.9 (colored)

Pull up following revision(s) (requested by christos in ticket #796):

	tools/mdsetimage/Makefile: revision 1.15
	tools/compat/Makefile: revision 1.82
	tools/gdb/Makefile: revision 1.35
	tools/lorder/Makefile: revision 1.13
	tools/gcc/Makefile: revision 1.85
	tools/dtc/Makefile: revision 1.3
	tools/cvslatest/Makefile: revision 1.2
	tools/ctfmerge/Makefile: revision 1.8
	tools/libelf/Makefile: revision 1.9
	tools/libdwarf/Makefile: revision 1.8
	tools/ctfconvert/Makefile: revision 1.7
	tools/makekeys/Makefile: revision 1.2
	tools/gettext/Makefile: revision 1.7
	tools/binstall/Makefile: revision 1.12
	tools/libfdt/Makefile: revision 1.3
	tools/libctf/Makefile: revision 1.7
	tools/binutils/Makefile: revision 1.27
	tools/mandoc/Makefile: revision 1.11
	tools/Makefile.host: revision 1.32
	tools/dbsym/Makefile: revision 1.13
	tools/genassym/Makefile: revision 1.7
	tools/Makefile.inc: revision 1.14

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
   use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
   include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
   first. This will also allow us to control other tools options from a
   single location if we need to.

XXX: pullup-8

Revision 1.6.14.1 / (download) - annotate - [select for diffs], Wed May 2 07:20:25 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.6: +2 -4 lines
Diff to previous 1.6 (colored) next main 1.7 (colored) to selected 1.9 (colored)

Synch with HEAD

Revision 1.9 / (download) - annotate - [selected], Tue May 1 19:59:46 2018 UTC (5 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host

Revision 1.8 / (download) - annotate - [select for diffs], Tue May 1 12:38:39 2018 UTC (5 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.7: +1 -3 lines
Diff to previous 1.7 (colored) to selected 1.9 (colored)

Centralize NOMAN handling.

Revision 1.7 / (download) - annotate - [select for diffs], Tue May 1 00:04:35 2018 UTC (5 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.9 (colored)

PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
not support the necessary options. This is done thusly:

1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
   use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
   include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
   first. This will also allow us to control other tools options from a
   single location if we need to.

XXX: pullup-8

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 17 18:43:29 2016 UTC (8 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.5: +4 -1 lines
Diff to previous 1.5 (colored) to selected 1.9 (colored)

Add DPADD's

Revision 1.2.12.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:53 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.2.12.1: +4 -3 lines
Diff to previous 1.2.12.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored) to selected 1.9 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.2.6.1 / (download) - annotate - [select for diffs], Thu May 22 11:42:30 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2: +6 -3 lines
Diff to previous 1.2 (colored) next main 1.3 (colored) to selected 1.9 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 9 17:12:03 2014 UTC (10 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored) to selected 1.9 (colored)

switch to the new libelf and libdwarf

Revision 1.2.12.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:29 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored) to selected 1.9 (colored)

resync with head

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jan 27 19:21:12 2013 UTC (11 years, 2 months ago) by riastradh
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.9 (colored)

Set NOMAN before including <bsd.own.mk> to really fix PR 47500.

(Hi, christos.)

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 24 13:35:52 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored) to selected 1.9 (colored)

Pr/47500: Henning Petersen: Don't install man pages for tools

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jun 19 23:11:10 2010 UTC (13 years, 10 months ago) by riz
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored) to selected 1.9 (colored)

Rename Makefile.disklabel to Makefile.nbincludes, as this file has
been used by more than disklabel for years.  New name suggestion from
mrg@ .

Revision 1.1 / (download) - annotate - [select for diffs], Wed Feb 24 21:34:57 2010 UTC (14 years, 1 month ago) by darran
Branch: MAIN
Diff to selected 1.9 (colored)

DTrace: add CTF tools to the toolchain (not built yet).

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>