symmetry.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Copyright (C) 2007-2015 Free Software Foundation, Inc.
  2. This file is part of BFD, the Binary File Descriptor library.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  14. MA 02110-1301, USA. */
  15. /* Symmetry running either dynix 3.1 (bsd) or ptx (sysv). */
  16. #define NBPG 4096
  17. #define UPAGES 1
  18. #ifdef _SEQUENT_
  19. /* ptx */
  20. #define HOST_TEXT_START_ADDR 0
  21. #define HOST_STACK_END_ADDR 0x3fffe000
  22. #define TRAD_CORE_USER_OFFSET ((UPAGES * NBPG) - sizeof (struct user))
  23. #else
  24. /* dynix */
  25. #define HOST_TEXT_START_ADDR 0x1000
  26. #define HOST_DATA_START_ADDR (NBPG * u.u_tsize)
  27. #define HOST_STACK_END_ADDR 0x3ffff000
  28. #define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
  29. ((core_bfd)->tdata.trad_core_data->u.u_arg[0])
  30. #endif
  31. #define TRAD_CORE_DSIZE_INCLUDES_TSIZE